Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
GUSIDiag.h File Reference
#include <sys/cdefs.h>
#include <stdarg.h>
#include <string.h>
#include <MacTypes.h>

Go to the source code of this file.

Defines

#define GUSI_DIAG_RECKLESS   0
#define GUSI_DIAG_RELAXED   1
#define GUSI_DIAG_CAUTIOUS   2
#define GUSI_DIAG_PARANOID   3
#define GUSI_DIAG   GUSI_DIAG_PARANOID
#define GUSI_LOG_POS   0
#define GUSI_MESSAGE_LEVEL   3
#define GUSI_LOG   GUSI_log
#define GUSI_BREAK   GUSI_break
#define GUSI_ASSERT_INTERNAL(COND, ARGLIST)   ((COND) || GUSI_BREAK ARGLIST)
#define GUSI_ASSERT_CLIENT(COND, ARGLIST)   ((COND) || GUSI_LOG ARGLIST)
#define GUSI_ASSERT_EXTERNAL(COND, ARGLIST)   ((COND) || GUSI_LOG ARGLIST)
#define GUSI_SASSERT_INTERNAL(COND, MSG)   ((COND) || GUSI_BREAK ("%s", (MSG)))
#define GUSI_SASSERT_CLIENT(COND, MSG)   ((COND) || GUSI_LOG ("%s", MSG))
#define GUSI_SASSERT_EXTERNAL(COND, MSG)   ((COND) || GUSI_LOG ("%s", MSG))
#define GUSI_CASSERT_INTERNAL(COND)   GUSI_SASSERT_INTERNAL(COND, "(" #COND ") -- assertion failed.\n" )
#define GUSI_CASSERT_CLIENT(COND)   GUSI_SASSERT_CLIENT(COND, "(" #COND ") -- assertion failed.\n" )
#define GUSI_CASSERT_EXTERNAL(COND)   GUSI_SASSERT_EXTERNAL(COND, "(" #COND ") -- assertion failed.\n" )
#define GUSI_MESSAGE1(ARGLIST)   GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>1, ARGLIST)
#define GUSI_SMESSAGE1(MSG)   GUSI_SASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>1, MSG)
#define GUSI_MESSAGE2(ARGLIST)   GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>2, ARGLIST)
#define GUSI_SMESSAGE2(MSG)   GUSI_SASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>2, MSG)
#define GUSI_MESSAGE3(ARGLIST)   GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>3, ARGLIST)
#define GUSI_SMESSAGE3(MSG)   GUSI_SASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>3, MSG)
#define GUSI_MESSAGE4(ARGLIST)   GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>4, ARGLIST)
#define GUSI_SMESSAGE4(MSG)   GUSI_SASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>4, MSG)
#define GUSI_MESSAGE5(ARGLIST)   GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>5, ARGLIST)
#define GUSI_SMESSAGE5(MSG)   GUSI_SASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>5, MSG)
#define GUSI_MESSAGE(ARGLIST)   GUSI_MESSAGE3(ARGLIST)
#define GUSI_SMESSAGE(MSG)   GUSI_SMESSAGE3(MSG)

Functions

bool GUSI_pos (const char *file, int line)
bool GUSI_log (const char *format,...)
bool GUSI_break (const char *format,...)

Variables

__BEGIN_DECLS char * GUSI_diag_log

Define Documentation

#define GUSI_ASSERT_CLIENT (   COND,
  ARGLIST 
)    ((COND) || GUSI_LOG ARGLIST)

Definition at line 173 of file GUSIDiag.h.

#define GUSI_ASSERT_EXTERNAL (   COND,
  ARGLIST 
)    ((COND) || GUSI_LOG ARGLIST)

Definition at line 174 of file GUSIDiag.h.

#define GUSI_ASSERT_INTERNAL (   COND,
  ARGLIST 
)    ((COND) || GUSI_BREAK ARGLIST)

Definition at line 172 of file GUSIDiag.h.

Definition at line 135 of file GUSIDiag.h.

#define GUSI_CASSERT_CLIENT (   COND)    GUSI_SASSERT_CLIENT(COND, "(" #COND ") -- assertion failed.\n" )

Definition at line 194 of file GUSIDiag.h.

#define GUSI_CASSERT_EXTERNAL (   COND)    GUSI_SASSERT_EXTERNAL(COND, "(" #COND ") -- assertion failed.\n" )

Definition at line 196 of file GUSIDiag.h.

#define GUSI_CASSERT_INTERNAL (   COND)    GUSI_SASSERT_INTERNAL(COND, "(" #COND ") -- assertion failed.\n" )

Definition at line 192 of file GUSIDiag.h.

Definition at line 120 of file GUSIDiag.h.

Definition at line 111 of file GUSIDiag.h.

Definition at line 112 of file GUSIDiag.h.

Definition at line 109 of file GUSIDiag.h.

Definition at line 110 of file GUSIDiag.h.

Definition at line 133 of file GUSIDiag.h.

Definition at line 123 of file GUSIDiag.h.

#define GUSI_MESSAGE (   ARGLIST)    GUSI_MESSAGE3(ARGLIST)

Definition at line 218 of file GUSIDiag.h.

#define GUSI_MESSAGE1 (   ARGLIST)    GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>1, ARGLIST)

Definition at line 198 of file GUSIDiag.h.

#define GUSI_MESSAGE2 (   ARGLIST)    GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>2, ARGLIST)

Definition at line 202 of file GUSIDiag.h.

#define GUSI_MESSAGE3 (   ARGLIST)    GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>3, ARGLIST)

Definition at line 206 of file GUSIDiag.h.

#define GUSI_MESSAGE4 (   ARGLIST)    GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>4, ARGLIST)

Definition at line 210 of file GUSIDiag.h.

#define GUSI_MESSAGE5 (   ARGLIST)    GUSI_ASSERT_EXTERNAL(GUSI_MESSAGE_LEVEL>5, ARGLIST)

Definition at line 214 of file GUSIDiag.h.

Definition at line 126 of file GUSIDiag.h.

#define GUSI_SASSERT_CLIENT (   COND,
  MSG 
)    ((COND) || GUSI_LOG ("%s", MSG))

Definition at line 176 of file GUSIDiag.h.

#define GUSI_SASSERT_EXTERNAL (   COND,
  MSG 
)    ((COND) || GUSI_LOG ("%s", MSG))

Definition at line 177 of file GUSIDiag.h.

#define GUSI_SASSERT_INTERNAL (   COND,
  MSG 
)    ((COND) || GUSI_BREAK ("%s", (MSG)))

Definition at line 175 of file GUSIDiag.h.

Definition at line 219 of file GUSIDiag.h.

Definition at line 200 of file GUSIDiag.h.

Definition at line 204 of file GUSIDiag.h.

Definition at line 208 of file GUSIDiag.h.

Definition at line 212 of file GUSIDiag.h.

Definition at line 216 of file GUSIDiag.h.


Function Documentation

bool GUSI_break ( const char *  format,
  ... 
)
bool GUSI_log ( const char *  format,
  ... 
)
bool GUSI_pos ( const char *  file,
int  line 
)

Variable Documentation