Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
Definition in file debuget.h.
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <fstream>
Include dependency graph for debuget.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | ASSERT(b, str) {if(!(b)) std::cout << "ASSERT:"<<_extractFilename(__FILE__)<<'.'<<__LINE__<<':'<< str << std::endl;} |
if the bool b is false, std::cout the string | |
#define | ASSERTRET(b, str) {if(!(b)) { std::cout << "ASSERT:"<<_extractFilename(__FILE__)<<'.'<<__LINE__<<':'<< str << std::endl; return; }} |
if the bool b is false, std::cout the string and return | |
#define | ASSERTRETVAL(b, str, v) {if(!(b)) { std::cout << "ASSERT:"<<_extractFilename(__FILE__)<<'.'<<__LINE__<<':'<< str << std::endl; return v; }} |
if the bool b is false, std::cout the string and return the value | |
#define | ASSERTFATAL(b, str, x) {if(!(b)) { std::cout << "ASSERT:"<<_extractFilename(__FILE__)<<'.'<<__LINE__<<':'<< str << std::endl; exit(x); }} |
if the bool b is false, std::cout the string and exit(x) | |
Functions | |
const char * | _extractFilename (const char *path) |
for historical reasons - the previous compiler give the entire path for __FILE__, for display, just use the filename | |
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 |
|
if the bool b is false, std::cout the string
|
|
if the bool b is false, std::cout the string and exit(x)
|
|
if the bool b is false, std::cout the string and return
|
|
if the bool b is false, std::cout the string and return the value
|
|
for historical reasons - the previous compiler give the entire path for __FILE__, for display, just use the filename
|
|
printf's the two hex digits coresponding to a byte
Definition at line 50 of file debuget.h. References hexdigit(). |
|
returns the hex char that corresponds to c, which should be 0-16 (returns '.' otherwise)
|
|
charhexout's n bytes starting at p
Definition at line 55 of file debuget.h. References charhexout(). |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:06:58 2003 by Doxygen 1.3.2 |