gobj_set_gclass_trace()

gobj_set_gclass_trace()#

Sets or resets the trace level for a given hgclass. If level is NULL, all trace levels are set or reset. If level is an empty string, only user-defined trace levels are affected.

Prototype

int gobj_set_gclass_trace(
    hgclass gclass,
    const char *level,
    BOOL set
);

Parameters

Key

Type

Description

gclass

hgclass

The hgclass whose trace level is being modified.

level

const char *

The trace level to set or reset. If NULL, all levels are affected. If an empty string, only user-defined levels are affected.

set

BOOL

If TRUE, the trace level is set; if FALSE, it is reset.


Return Value

Returns 0 on success, or -1 if the specified trace level is not found.

Notes

If gclass is NULL, the function modifies the global trace level instead.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples