diff options
Diffstat (limited to 'src/entityimpl.h')
-rw-r--r-- | src/entityimpl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/entityimpl.h b/src/entityimpl.h index 859b44c..adc4c09 100644 --- a/src/entityimpl.h +++ b/src/entityimpl.h @@ -5,8 +5,10 @@ #include "entitytag.h" #include <string.h> -#define IMPL_UPDATE() static Entity*update(Entity*this,Game*g){(void)this,(void)g; -#define IMPL_DRAW() static Entity*draw(Entity*this,Game*g){(void)this,(void)g; +#define IMPL_UPDATE() static Entity * \ + update([[maybe_unused]] Entity *this, [[maybe_unused]] Game *g) { +#define IMPL_DRAW() static Entity * \ + draw([[maybe_unused]] Entity *this, [[maybe_unused]] Game *g) { #define IMPL_INIT(X) __attribute__((constructor)) static void init_tag() { \ entitytags[num_entitytags++] = #X; \ } \ @@ -18,5 +20,4 @@ Entity *X##_init(Entity *this, int x, int y) { do { \ this->pos[1] = y; \ this->type = entity_type(#X); \ } while(0); -#define IMPL_INIT_END #define IMPL_END return this; } |