/cygdrive/d/src/svn/vrut/trunk/core/src/module.h File Reference
#include <wx/thread.h>
#include "flexilog.h"
#include "eventhandler.h"
#include "guienvironment.h"
Go to the source code of this file.
Define Documentation
#define EXPORT_VRUT_MODULE_FUNCTIONS |
( |
moduleClassName |
|
) |
|
Value:
extern "C" DLLEXPORT void CREATE_INSTANCE_FUNC CREATE_INSTANCE_FUNC_ARGS \
{ \
if (*instance) \
{ \
delete (VRUT::moduleClassName *)instance; \
*instance = 0; \
} \
\
if (*version != VRUT::MODULE_VERSION) \
*version = VRUT::MODULE_VERSION; \
else \
*instance = new VRUT::moduleClassName(id, wxT( # moduleClassName ), evtHandler); \
} \
\
extern "C" DLLEXPORT void RELEASE_INSTANCE_FUNC(void * instance) \
{ \
if (instance) \
delete (VRUT::moduleClassName *)instance; \
}
Definition at line 27 of file module.h.
#define REGISTER_LISTENER |
( |
evtType |
|
) |
|
Value:
{ \
kernelMsgSink->RegisterListener(GetID(), evtType); \
}
Definition at line 49 of file module.h.
#define RELEASE_INSTANCE_FUNC_ARGS (void *) |