Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

debuget Namespace Reference

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

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

Detailed Description

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


Function Documentation

void debuget::charhexout ( char  c  ) 

printf's the two hex digits coresponding to a byte

Definition at line 68 of file debuget.h.

Referenced by hexout().

void debuget::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

Definition at line 26 of file debuget.h.

const char* debuget::extractFilename ( const char *  path  ) 

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

Definition at line 17 of file debuget.h.

Referenced by displayAssert().

char debuget::hexdigit ( int  c  ) 

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

Definition at line 57 of file debuget.h.

Referenced by charhexout().

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

charhexout's n bytes starting at p

Definition at line 73 of file debuget.h.

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

displays hex and ascii values of size bytes from p

Definition at line 90 of file debuget.h.

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

displays hex and ascii values of size bytes from p

Definition at line 123 of file debuget.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:59:20 2016 by Doxygen 1.6.3