# GB.CheckObject

int GB.CheckObject ( void * object )

Checks an object, i.e. asks the interpreter to check that the object reference is not null, to call the check class hook on this object, then to return the result.

object is an object reference.

This function returns `TRUE` if the object is null or invalid. In that case, it calls GB.Error to define an explicit error.

Use this functione each time you receive an object reference that can be in a invalid state, and want to ensure this reference is valid.