minor cleanup
This commit is contained in:
parent
8f3aaba794
commit
c78635f499
@ -242,7 +242,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* Expects struct body after invocation. E.g. DEFINE_NIL_STRUCT(struct a, a_nil) { 0 } */
|
/* Expects struct body after invocation. E.g. DEFINE_NIL_STRUCT(struct a, a_nil) { 0 } */
|
||||||
#define DEFINE_NIL_STRUCT(type, function_name) \
|
#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
|
#if 0
|
||||||
/* ========================== *
|
/* ========================== *
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "entity.h"
|
#include "entity.h"
|
||||||
|
|
||||||
DEFINE_NIL_STRUCT(struct entity, entity_nil) = { 0 };
|
DEFINE_NIL_STRUCT(struct entity, entity_nil) { 0 };
|
||||||
|
|
||||||
/* ========================== *
|
/* ========================== *
|
||||||
* Prop
|
* Prop
|
||||||
|
|||||||
@ -96,7 +96,7 @@ struct entity {
|
|||||||
f32 camera_zoom;
|
f32 camera_zoom;
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_NIL_STRUCT(struct entity, entity_nil)
|
DECLARE_NIL_STRUCT(struct entity, entity_nil);
|
||||||
|
|
||||||
/* Prop */
|
/* Prop */
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user