#include <cdebug.h>
Collaboration diagram for CDebug:

Public Member Functions | |
| void | log_error (const char *err_msg, int fatal=0) |
Static Public Member Functions | |
| void | log (const char *err_msg, int fatal=0) |
| CDebug * | get_instance () |
Static Private Attributes | |
| CDebug * | unique_instance = 0 |
Definition at line 11 of file cdebug.h.
|
|
Return the singleton instance. If it doesn't already exist, create it. Definition at line 38 of file cdebug.h. References unique_instance. |
|
||||||||||||
|
Static macro for the instance's log_error() method. This is just more convenient than having to call CDebug::get_instance()->log_error(). Definition at line 32 of file cdebug.h. References get_instance(), and log_error(). |
Here is the call graph for this function:

|
||||||||||||
|
Log the given error message to stderr. If fatal is true, the program exits immediately with an error code of fatal.
Definition at line 11 of file cdebug.cpp. |
|
|
Singleton instance. Definition at line 9 of file cdebug.cpp. |
1.3.3