gobj_typeof_gclass()

gobj_typeof_gclass()#

Checks if the given hgobj belongs to the specified gclass.

Prototype

BOOL gobj_typeof_gclass(
    hgobj gobj,
    const char *gclass_name
);

Parameters

Key

Type

Description

gobj

hgobj

The object whose gclass is to be checked.

gclass_name

const char *

The name of the gclass to compare against.


Return Value

Returns TRUE if the hgobj belongs to the specified gclass, otherwise returns FALSE.

Notes

This function performs a strict comparison against the object’s gclass and does not check for inherited gclasses.

Prototype

// Not applicable in JS

Prototype

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