Function ecs_term_copy

Synopsis

#include <include/flecs.h>

FLECS_API ecs_term_t ecs_term_copy(const ecs_term_t *src)

Description

Copy resources of a term to another term. This operation copies one term to another term. If the source term contains allocated resources (such as identifiers), they will be duplicated so that no memory is shared between the terms.

Parameters

src - The term to copy from.

Returns
The destination term.

Source

Line 2991 in include/flecs.h.