Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

debuget Namespace Reference


Detailed Description

contains some debugging functions and ASSERT macros (although the macros don't respect the namespace scoping...)


Functions

const char * extractFilename (const char *path)
 for display, just use the filename, not the whole path
void displayAssert (const char *file, unsigned int line, const char *msg)
 mostly for use with a debugger -- set a breakpoint on this function and you can catch anytime an assertion is generated
char hexdigit (int c)
 returns the hex char that corresponds to c, which should be 0-16 (returns '.' otherwise)
void charhexout (char c)
 printf's the two hex digits coresponding to a byte
void hexout (const void *p, size_t n)
 charhexout's n bytes starting at p
void hexout2 (const void *p, size_t size)
 displays hex and ascii values of size bytes from p
void hexout3 (const char *buf, size_t size)
 displays hex and ascii values of size bytes from p


Function Documentation

const char* debuget::extractFilename ( const char *  path  )  [inline]

for display, just use the filename, not the whole path

Definition at line 17 of file debuget.h.

Referenced by displayAssert(), and ProjectInterface::displayException().

void debuget::displayAssert ( const char *  file,
unsigned int  line,
const char *  msg 
) [inline]

mostly for use with a debugger -- set a breakpoint on this function and you can catch anytime an assertion is generated

Definition at line 26 of file debuget.h.

char debuget::hexdigit ( int  c  )  [inline]

returns the hex char that corresponds to c, which should be 0-16 (returns '.' otherwise)

Definition at line 49 of file debuget.h.

Referenced by charhexout().

void debuget::charhexout ( char  c  )  [inline]

printf's the two hex digits coresponding to a byte

Definition at line 60 of file debuget.h.

Referenced by hexout().

void debuget::hexout ( const void *  p,
size_t  n 
) [inline]

charhexout's n bytes starting at p

Definition at line 65 of file debuget.h.

void debuget::hexout2 ( const void *  p,
size_t  size 
) [inline]

displays hex and ascii values of size bytes from p

Definition at line 82 of file debuget.h.

void debuget::hexout3 ( const char *  buf,
size_t  size 
) [inline]

displays hex and ascii values of size bytes from p

Definition at line 115 of file debuget.h.


Tekkotsu v3.0
Generated Wed Oct 4 00:05:21 2006 by Doxygen 1.4.7