Function _ecs_poly_is

Synopsis

#include <include/flecs.h>

FLECS_API bool _ecs_poly_is(const ecs_poly_t *object, int32_t type)

Description

Test if pointer is of specified type. Usage: ecs_poly_is(ptr, ecs_world_t)

This operation only works for poly types.

Parameters

object - The object to test.

type - The id of the type.

Returns
True if the pointer is of the specified type.

Source

Line 1530 in include/flecs.h.