Basic debugging utility macros. More...
#include <stdio.h>
#include <stdarg.h>
Go to the source code of this file.
Defines | |
#define | STRX(x) #x |
Stringify number-valued preprocessor defines like __LINE__. | |
#define | dprintf(level,...) _dprintf(level, __FILE__ ":" STR(__LINE__), __VA_ARGS__) |
Printf-like debugging macro, which fills the source argument of _dprintf using the file name and line number. | |
Enumerations | |
enum | debugLevel |
Encoding of the error levels described above. More... | |
Functions | |
void | _dprintf (int, const char *, const char *,...) |
Raw printf-like debugging fuction. |
Basic debugging utility macros.
These cannot be placed in the FCam namespace, being macros, so this header is not included by default by any part of the FCam public interface. Feel free to include it if you wish to use it, but be aware of the possibility of namespace pollution. To enable debugging, define DEBUG before including this header.
Definition in file Debug.h.
#define dprintf | ( | level, | ||
... | ||||
) | _dprintf(level, __FILE__ ":" STR(__LINE__), __VA_ARGS__) |
enum debugLevel |
void _dprintf | ( | int | , | |
const char * | , | |||
const char * | , | |||
... | ||||
) | [inline] |