GLG Toolkit, C / C++ API Library  Version 4.6
3. Macros

Detailed Description

Macros

#define GlgAllocStruct(size)
 Allocates a structure using GlgAlloc and initializes it with 0s. More...
 
#define GlgInitStruct(ptr, size)
 Initializes structure with 0s. More...
 
#define GlgNullObjectMacro(object_holder)
 Assigns a NULL object to the GlgObject variable and dereferences its old value. More...
 
#define GlgSetObjectMacro(object_holder, new_value)
 Assigns a new object value to the object variable. More...
 

Macro Definition Documentation

◆ GlgAllocStruct

#define GlgAllocStruct (   size)

Allocates a structure using GlgAlloc and initializes it with 0s.

Parameters
sizeSize of the structure to allocate.
Returns
A pointer to the allocated structure.

◆ GlgInitStruct

#define GlgInitStruct (   ptr,
  size 
)

Initializes structure with 0s.

Parameters
ptrPointer to the structure to be initialized.
sizeStructure size.

◆ GlgNullObjectMacro

#define GlgNullObjectMacro (   object_holder)

Assigns a NULL object to the GlgObject variable and dereferences its old value.

Parameters
object_holderGlgObject variable that will be assigned a NULL value. The old value will be dereferenced.

◆ GlgSetObjectMacro

#define GlgSetObjectMacro (   object_holder,
  new_value 
)

Assigns a new object value to the object variable.

Dereferences the old value and references the new one.

Parameters
object_holderGlgObject variable that will be assigned a new value. The old value will be dereferenced.
new_valueNew GlgObject value to be assigned. It will be referenced.