Home > dev > api > name > gb.checkobject 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
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.

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 function each time you receive an object reference, and want to ensure that this reference is usable. Returns immediately if GB.CheckObject returns TRUE.

See also

Object Management