ecs_term_finalize

Function ecs_term_finalize 

Source
pub unsafe extern "C" fn ecs_term_finalize(
    world: *const ecs_world_t,
    term: *mut ecs_term_t,
) -> i32
Expand description

Finalize term. Ensure that all fields of a term are consistent and filled out. This operation should be invoked before using and after assigning members to, or parsing a term. When a term contains unresolved identifiers, this operation will resolve and assign the identifiers. If the term contains any identifiers that cannot be resolved, the operation will fail.

An application generally does not need to invoke this operation as the APIs that use terms (such as filters, queries and triggers) will finalize terms when they are created.

The name and expr parameters are optional, and only used for giving more descriptive error messages.

@param world The world. @param term The term to finalize. @return Zero if success, nonzero if an error occurred.