Common mkd64 defines and macros. More...
#include <mkd64/util.h>
Macros | |
#define | MKD64_MODULE(modname) |
Declare a module. | |
#define | OBJNEW(classname) |
Create a new object instance There are variations OBJNEW1 to OBJNEW5 taking 1 to 5 additional parameters that are passed to the constructor. | |
#define | OBJDEL(classname, object) |
Delete an object instance This calls the destructor for the object and frees allocated memory. |
Common mkd64 defines and macros.
Defines for exporting/importing symbols, helper macros for modules and object handling and some miscellaneous stuff. Should always be included.
#define MKD64_MODULE | ( | modname | ) |
Declare a module.
This must be called once in every mkd64 module. Do NOT place a semicolon at the end.
modname | the name (id) of the module |
#define OBJDEL | ( | classname, | |
object | |||
) |
Delete an object instance This calls the destructor for the object and frees allocated memory.
classname | the class name of the object |
object | the pointer to the object |
#define OBJNEW | ( | classname | ) |
Create a new object instance There are variations OBJNEW1 to OBJNEW5 taking 1 to 5 additional parameters that are passed to the constructor.
classname | the name of the class for the new object |