|
| bool | crashOnNaN () |
| |
| void | forceCrash (bool withdump) |
| |
| bool | isOn (int flag=0xffff) |
| |
| void | message (const char *) |
| | default: to stderr
|
| |
| void | message (const char *, const char *cname, const char *fname, int linrnr) |
| |
| void | message (int flag, const char *, const char *cname, const char *fname, int linrnr) |
| |
| void | message (int flag, const char *msg) |
| |
| void | putProgInfo (int, char **) |
| | one line; more if isOn()
|
| |
| bool | setCrashOnProgError (bool yn) |
| | Returns old status.
|
| |
| void | turnOn (int flag) |
| | Overrides the envirnonment variable.
|
| |
Defines a generic interface for supplying debug/runtime info.
The isOn() is controlled by the environment variable DTECT_DEBUG. If DTECT_DEBUG starts with a "Y" or "y" then the mask is set to 0xffff. isOn returns the bitwise "and" of the passed flag and the internal environment mask, converted to a boolean.
The reserved/defined masks are defined below. if you want the output in a file, set the full path in DTECT_DEBUG_LOGFILE.