Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/debug.h File Reference

Debug related functions. More...

#include <cstdio>
#include <string>
#include <stdarg.h>
#include <time.h>

Go to the source code of this file.

Defines

#define BREAKPOINT   ;
#define Xsend(sock, buff, length)
 Unformatted output.

#define CRASH_IF_INVALID_SOCK(sock)   if (sock<0 || sock>=MAXCLIENT) chars[-1000000].x=0
#define INVALIDATE   { nInvalidate = __LINE__; throw; }
#define DBG_INRANGE(A, B, C)   if ((A<B)||(A>=C)) INVALIDATE;
#define DBG_WPTR(A, S)   if ((A==NULL)) INVALIDATE;
#define DBG_STR(S)   if ((A==NULL)) INVALIDATE;

Functions

void __CDECL ConOut (char *txt,...)

Variables

bool g_bExceptionCaught


Detailed Description

Debug related functions.


Define Documentation

#define BREAKPOINT   ;
 

#define CRASH_IF_INVALID_SOCK sock       if (sock<0 || sock>=MAXCLIENT) chars[-1000000].x=0
 

#define DBG_INRANGE A,
B,
     if ((A<B)||(A>=C)) INVALIDATE;
 

#define DBG_STR      if ((A==NULL)) INVALIDATE;
 

#define DBG_WPTR A,
     if ((A==NULL)) INVALIDATE;
 

#define INVALIDATE   { nInvalidate = __LINE__; throw; }
 

#define Xsend sock,
buff,
length   
 

Value:

if( sock==INVALID || sock >=now) \
                ConOut("INVALID socket %d was used in Xsend in %s:%d \n", sock, __FILE__, __LINE__ ); \
        else    \
                Network->xSend(sock, buff, length) \
Unformatted output.


Function Documentation

void __CDECL ConOut char *    txt,
...   
 


Variable Documentation

bool g_bExceptionCaught
 

SourceForge.net Logo