Classes | |
| class | buf2str |
Print a (char) buffer with a given size to a debug ostream, escaping non-printable characters. More... | |
| class | char2str |
Print a char to a debug ostream, escaping non-printable characters as needed. More... | |
| interface | cwprint |
| Print an object to a debug stream without needing an operator<<. More... | |
| interface | cwprint_using |
| Print an object to an ostream using an arbitrary method of that object. More... | |
Defines | |
| #define | ForAllDebugChannels(STATEMENT...) |
| Looping over all debug channels. | |
| #define | ForAllDebugObjects(STATEMENT...) |
| Looping over all debug objects. | |
Functions | |
| channel_ct * | libcwd::find_channel (char const *label) |
| Find debug channel with label label. | |
| void | libcwd::list_channels_on (debug_ct &debug_object) |
| List all debug channels to a given debug object. | |
|
|
Looping over all debug channels.
The macro For example,
which turns all channels on. And
which turns all channels off. |
|
|
Looping over all debug objects.
The macro For example,
would set the output stream of all debug objects to |
|
|
Find debug channel with label label.
|
|
|
List all debug channels to a given debug object. Example:
Example of output:
Where FOO and BAR are user defined channels in this example. |