Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Debug I/O interface helper macros

Macros

#define DEBUG_DECLARE_IO_INTERFACE(type)
 
#define DEBUG_IMPLEMENT_IO_INTERFACE(io_id, descr, type)
 

Detailed Description

Macro Definition Documentation

◆ DEBUG_DECLARE_IO_INTERFACE

#define DEBUG_DECLARE_IO_INTERFACE ( type)
Value:
public: \
static bool __RegisterClassFactory; \
static DebugIOInterface *__ClassFactory(void) { return new type; }
Debug I/O interface.
Definition debug_io.h:47

Definition at line 190 of file debug_io.h.

◆ DEBUG_IMPLEMENT_IO_INTERFACE

#define DEBUG_IMPLEMENT_IO_INTERFACE ( io_id,
descr,
type )
Value:
static bool type::__RegisterClassFactory=Debug::AddIOFactory(#io_id,descr,type::__ClassFactory);
static bool AddIOFactory(const char *io_id, const char *descr, DebugIOInterface *(*func)(void))
Registers a new I/O class factory function.

Definition at line 195 of file debug_io.h.