From c78635f499f136762de28ad65dfc52388aeb89b3 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 8 Mar 2024 17:39:07 -0600 Subject: [PATCH] minor cleanup --- src/common.h | 2 +- src/entity.c | 2 +- src/entity.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common.h b/src/common.h index 99c22e42..ceef65ec 100644 --- a/src/common.h +++ b/src/common.h @@ -242,7 +242,7 @@ extern "C" { /* Expects struct body after invocation. E.g. DEFINE_NIL_STRUCT(struct a, a_nil) { 0 } */ #define DEFINE_NIL_STRUCT(type, function_name) \ - type READ_ONLY CAT(__nil_struct__, function_name) + type READ_ONLY CAT(__nil_struct__, function_name) = #if 0 /* ========================== * diff --git a/src/entity.c b/src/entity.c index 3c226d76..7cfb4048 100644 --- a/src/entity.c +++ b/src/entity.c @@ -1,6 +1,6 @@ #include "entity.h" -DEFINE_NIL_STRUCT(struct entity, entity_nil) = { 0 }; +DEFINE_NIL_STRUCT(struct entity, entity_nil) { 0 }; /* ========================== * * Prop diff --git a/src/entity.h b/src/entity.h index 90e44c59..0bf1cc7a 100644 --- a/src/entity.h +++ b/src/entity.h @@ -96,7 +96,7 @@ struct entity { f32 camera_zoom; }; -DECLARE_NIL_STRUCT(struct entity, entity_nil) +DECLARE_NIL_STRUCT(struct entity, entity_nil); /* Prop */