Convenience macro's for sorting tables.
More...
Convenience macro's for sorting tables.
◆ ECS_COMPARE
#define ECS_COMPARE |
( |
| id, |
|
|
| ... ) |
Value:
__VA_ARGS__ \
}
ecs_id_t ecs_entity_t
An entity identifier.
Definition at line 866 of file flecs_c.h.
◆ ecs_compare
#define ecs_compare |
( |
| id | ) |
|
Value:
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component id for EcsDocDescription.
Definition at line 758 of file flecs_c.h.
◆ ECS_SORT_TABLE
#define ECS_SORT_TABLE |
( |
| id, |
|
|
| ... ) |
Value: ECS_SORT_TABLE_WITH_COMPARE(id, ecs_sort_table(id), ecs_compare(id), __VA_ARGS__)
Definition at line 853 of file flecs_c.h.
◆ ecs_sort_table
#define ecs_sort_table |
( |
| id | ) |
|
◆ ECS_SORT_TABLE_WITH_COMPARE
#define ECS_SORT_TABLE_WITH_COMPARE |
( |
| id, |
|
|
| op_name, |
|
|
| compare_fn, |
|
|
| ... ) |