Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
mydebug.h File Reference
#include "wstypes.h"
#include <iostream>
#include "sem4.h"
#include "odevice.h"
#include "streamer.h"
#include "xtime.h"
#include "timezone.h"
#include "filed.h"

Go to the source code of this file.

Classes

class  MyMsgManager
 

Macros

#define USE_SEM
 
#define MYDEBUGLOCK   MyDebugLibSemaphore.Wait()
 
#define MYDEBUGUNLOCK   MyDebugLibSemaphore.Post()
 
#define PARANOIDMSG(X)
 
#define PARANOIDSTREAM(X)
 

Variables

Sem4 MyDebugLibSemaphore
 

Macro Definition Documentation

◆ MYDEBUGLOCK

#define MYDEBUGLOCK   MyDebugLibSemaphore.Wait()

Definition at line 88 of file mydebug.h.

◆ MYDEBUGUNLOCK

#define MYDEBUGUNLOCK   MyDebugLibSemaphore.Post()

Definition at line 89 of file mydebug.h.

◆ PARANOIDMSG

#define PARANOIDMSG ( X)
Value:
{\
char timebuf[40]; \
Xtime now; \
now -= TimezoneOffset(); \
now.FormatTime(timebuf, "mm/dd/yy hh:mm:ss"); \
(*(MyMsgManager::paranoidStream())) << "HACK " << timebuf << " [" << \
__FILE__ << " " << __LINE__ << "] " << X << endl; \
}
static ostream * paranoidStream(void)
Definition mydebug.cpp:72
Definition xtime.h:56
bit8 FormatTime(char *out, char *format)
Definition xtime.cpp:315
int TimezoneOffset(void)
Definition timezone.cpp:66
#define MYDEBUGLOCK
Definition mydebug.h:88
#define MYDEBUGUNLOCK
Definition mydebug.h:89

Definition at line 97 of file mydebug.h.

◆ PARANOIDSTREAM

#define PARANOIDSTREAM ( X)
Value:

Definition at line 111 of file mydebug.h.

◆ USE_SEM

#define USE_SEM

Definition at line 56 of file mydebug.h.

Variable Documentation

◆ MyDebugLibSemaphore

Sem4 MyDebugLibSemaphore
extern

Definition at line 33 of file mydebug.cpp.