-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function-like macros #35
Comments
Object-like macros have been implemented. It would just be taking it to the next level with function-like macros. |
C header |
Now that object-like macros are working well enough, this should be explored more. I need it for E.g. the function-like macro #define ECS_COMPONENT_DEFINE(world, id) \
{\
ecs_component_desc_t desc = {0}; \
desc.entity.entity = ecs_id(id); \
desc.entity.name = #id; \
desc.entity.symbol = #id; \
desc.size = sizeof(id); \
desc.alignment = ECS_ALIGNOF(id); \
ecs_id(id) = ecs_component_init(world, &desc);\
ecs_assert(ecs_id(id) != 0, ECS_INVALID_PARAMETER, NULL);\
} |
No description provided.
The text was updated successfully, but these errors were encountered: