Function ecs_tracing_enable

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_tracing_enable(int level)

Description

Enable or disable tracing. This will enable builtin tracing. For tracing to work, it will have to be compiled in which requires defining one of the following macro's:

ECS_TRACE_0 - All tracing is disabled ECS_TRACE_1 - Enable tracing level 1 ECS_TRACE_2 - Enable tracing level 2 and below ECS_TRACE_3 - Enable tracing level 3 and below

If no tracing level is defined and this is a debug build, ECS_TRACE_3 will have been automatically defined.

The provided level corresponds with the tracing level. If -1 is provided as value, warnings are disabled. If -2 is provided, errors are disabled as well.

Parameters

level - Desired tracing level.

Source

Line 1180 in include/flecs.h.