Mkd64 module API  1.3b
API for creating own mkd64 modules
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
common.h File Reference

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.

Detailed Description

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.

Macro Definition Documentation

#define MKD64_MODULE (   modname)

Declare a module.

This must be called once in every mkd64 module. Do NOT place a semicolon at the end.

See Also
module.c
Parameters
modnamethe name (id) of the module
Examples:
module.c.
#define OBJDEL (   classname,
  object 
)

Delete an object instance This calls the destructor for the object and frees allocated memory.

Parameters
classnamethe class name of the object
objectthe 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.

Parameters
classnamethe name of the class for the new object