C++ API

Namespaces

flecs

Classes

type_deprecated

Functions

operator delete
operator new

Defines

Defines (flecs.hpp)

flecs_static_assert(cond,str)
static_assert(cond, str)

Defines (util.hpp)

FLECS_PLACEMENT_NEW(_ptr,_type)
::new(flecs::_::placement_new_tag, _ptr) _type

FLECS_NEW(_type)
FLECS_PLACEMENT_NEW(ecs_os_malloc(sizeof(_type)), _type)

FLECS_DELETE(_ptr)
do {
if (_ptr) {
flecs::_::destruct_obj(_ptr);
ecs_os_free(_ptr);
}
} while (false)