Function ecs_term_is_initialized

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_term_is_initialized(const ecs_term_t *term)

Description

Test whether a term is set. This operation can be used to test whether a term has been initialized with values or whether it is empty.

An application generally does not need to invoke this operation. It is useful when initializing a 0-initialized array of terms (like in ecs_term_desc_t) as this operation can be used to find the last initialized element.

Parameters

term - The term.

Returns
True when set, false when not set.

Source

Line 2344 in include/flecs.h.