Skip to content
Flecs v4.1

Macros

#define ecs_count(world, type)
 Count entities with a component.

Detailed Description

Macro Definition Documentation

◆ ecs_count

#define ecs_count ( world,
type )
Value:
ecs_count_id(world, ecs_id(type))
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component ID for EcsDocDescription.
int32_t ecs_count_id(const ecs_world_t *world, ecs_id_t entity)
Count entities that have the specified ID.

Count entities with a component.

Definition at line 709 of file flecs_c.h.