1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
/**
* @file debug.h
* @brief Debugging functions
*/
#ifndef _DEBUG_H_
#define _DEBUG_H_
/**
* @brief prints a debug message to the screen if the level of the
* message is higher than the current debug level
* @param int level - level of debug message
* @param char *fmt - format of message to write (a la printf)
* @param ... - other args for format string
*/
void debug_printf(int level, const char *fmt, ...)
#ifdef __GNUC__
__attribute__((format(printf, 2, 3)))
#endif
;
#endif
|