Home / api / name / gb.checkobject 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
fr  de  es  it  nl  pl  pt  pt_BR  mk  ca  ar  fa  vi  ja  ru  zh  zh_TW  eo 
Documentation
History
 
GB.CheckObject
Syntax
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