Skip to content
Flecs v4.1
meta_c.h File Reference

Utility macros for populating reflection data in C. More...

Go to the source code of this file.

Macros

#define ECS_META_COMPONENT(world, name)
 Declare component with descriptor.
#define ECS_STRUCT(name, ...)
 ECS_STRUCT(name, body).
#define ECS_ENUM(name, ...)
 ECS_ENUM(name, body).
#define ECS_BITMASK(name, ...)
 ECS_BITMASK(name, body).
#define ECS_PRIVATE
 Macro used to mark part of type for which no reflection data is created.
#define ecs_vec(T)
 Macro used to declare a vector member in types with reflection data.
#define ecs_map(K, V)
 Macro used to declare a map member in types with reflection data.

Functions

FLECS_API int ecs_meta_from_desc (ecs_world_t *world, ecs_entity_t component, ecs_type_kind_t kind, const char *desc)
 Populate meta information from type descriptor.

Detailed Description

Utility macros for populating reflection data in C.

Definition in file meta_c.h.