Debug.h File Reference


Detailed Description

Common debugging routines, macros, and definitions.

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <support/atomic.h>
#include <support/SupportDefs.h>
#include <ErrorMgr.h>
#include <support/Atom.h>

Go to the source code of this file.

Classes

class  BDebugCondition
class  BDebugInteger
class  BDebugState
struct  CompileTimeAssert< true >

Debugging Macros

#define ASSERT(E)   (void)0
#define ASSERT_WITH_MESSAGE(expr, msg)   (void)0
#define DEBUG_ONLY(x)
#define DEBUGGER(MSG)   (void)0
#define EXEC_DEBUG_ACTION(action, data)   (void)0
#define IS_DEBUG_ENABLED()   (void)0
#define PRINT(ARGS)   (void)0
#define PRINT_OBJECT(OBJ)   (void)0
#define SERIAL_PRINT(ARGS)   (void)0
#define SERIAL_TRACE()   (void)0
#define SET_DEBUG_ENABLED(FLAG)   (void)0
#define STATIC_ASSERT(x)   CompileTimeAssert< (x) >()
#define TRACE()   (void)0
#define TRESPASS()   (void)0
#define VALIDATE(x, recover)   if (!(x)) { recover; }

Named Debugging Variables

_IMPEXP_SUPPORT void add_debug_atom (const BNS(::palmos::support::) sptr< BNS(palmos::support::) SAtom > &atom, const char *name)
_IMPEXP_SUPPORT void add_debug_atom (BNS(palmos::support::) SAtom *atom, const char *name)
_IMPEXP_SUPPORT void add_debug_sized (const void *key, size_t size, const char *name)
_IMPEXP_SUPPORT void set_debug_fieldwidth (int width)
_IMPEXP_SUPPORT BNS(palmos::support::)
SString lookup_debug(const
BNS(_IMPEXP_SUPPOR 
BNS )(palmos::support::) SString lookup_debug(const void *key
_IMPEXP_SUPPORT BNS(palmos::support::)
SString lookup_debug(const
BNS(_IMPEXP_SUPPORT boo 
padding ) = true)

Defines

#define _rtDebugFlag   true
#define DEBUG   0

Typedefs

typedef void(* b_debug_action )(void *data)

Functions

int _debugFlag (void)
int _debugPrintf (const char *,...)
void _exec_debug_action (b_debug_action action, void *data)
int _setDebugFlag (int)
int _sPrintf (const char *,...)
int _xdebugPrintf (const char *,...)


Define Documentation

#define _rtDebugFlag   true
 

#define ASSERT  )     (void)0
 

#define ASSERT_WITH_MESSAGE expr,
msg   )     (void)0
 

#define DEBUG   0
 

#define DEBUG_ONLY  ) 
 

#define DEBUGGER MSG   )     (void)0
 

#define EXEC_DEBUG_ACTION action,
data   )     (void)0
 

 
#define IS_DEBUG_ENABLED  )     (void)0
 

#define PRINT ARGS   )     (void)0
 

#define PRINT_OBJECT OBJ   )     (void)0
 

#define SERIAL_PRINT ARGS   )     (void)0
 

 
#define SERIAL_TRACE  )     (void)0
 

#define SET_DEBUG_ENABLED FLAG   )     (void)0
 

#define STATIC_ASSERT  )     CompileTimeAssert< (x) >()
 

 
#define TRACE  )     (void)0
 

 
#define TRESPASS  )     (void)0
 

#define VALIDATE x,
recover   )     if (!(x)) { recover; }
 


Typedef Documentation

typedef void(* b_debug_action)(void *data)
 


Function Documentation

int _debugFlag void   ) 
 

int _debugPrintf const char *  ,
  ...
 

void _exec_debug_action b_debug_action  action,
void *  data
 

int _setDebugFlag int   ) 
 

int _sPrintf const char *  ,
  ...
 

int _xdebugPrintf const char *  ,
  ...
 

_IMPEXP_SUPPORT void add_debug_atom const BNS(::palmos::support::) sptr< BNS(palmos::support::) SAtom > &  atom,
const char *  name
 

_IMPEXP_SUPPORT void add_debug_atom BNS(palmos::support::) SAtom atom,
const char *  name
 

_IMPEXP_SUPPORT void add_debug_sized const void *  key,
size_t  size,
const char *  name
 

_IMPEXP_SUPPORT void set_debug_fieldwidth int  width  ) 
 


Variable Documentation

BNS
 

_IMPEXP_SUPPORT BNS (palmos::support::)SString lookup_debug( const BNS( _IMPEXP_SUPPORT boo padding) = true)