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 and exit(x)
|
|
if the bool b is false, std::cout the string and return
Definition at line 21 of file debuget.h. Referenced by EventLogger::checkLogFile(), Controller::closeGUI(), VisualTargetCloseTrans::processEvent(), SegCamBehavior::processEvent(), RawCamBehavior::processEvent(), PlayMotionSequenceNode< SIZE >::processEvent(), HeadLevelBehavior::processEvent(), FreeMemReportControl::processEvent(), BatteryMonitorBehavior::processEvent(), MMCombo::ReadySendJoints(), RawCameraGenerator::reconstructImage(), and RawCameraGenerator::upsampleImage(). |
|
if the bool b is false, std::cout the string and return the value
Definition at line 23 of file debuget.h. Referenced by Profiler::getNewID(), SegCamBehavior::openPacket(), RawCamBehavior::openPacket(), RawCamBehavior::writeColor(), SegCamBehavior::writeRLE(), SegCamBehavior::writeSeg(), and RawCamBehavior::writeSingleChannel(). |
|
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. Referenced by hexout(). |
|
returns the hex char that corresponds to c, which should be 0-16 (returns '.' otherwise)
Definition at line 39 of file debuget.h. Referenced by charhexout(). |
|
charhexout's n bytes starting at p
|
Tekkotsu v2.0 |
Generated Wed Jan 21 03:20:52 2004 by Doxygen 1.3.4 |