2009-07-21 15:47:24 +02:00

43 lines
1.3 KiB
C

/*
* =====================================================================================
*
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
* X88 888 888 Y8b. X88 888 888 888 888 888 888
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
*
* www.optixx.org
*
*
* Version: 1.0
* Created: 07/21/2009 03:32:16 PM
* Author: david@optixx.org
*
* =====================================================================================
*/
#ifndef __DEBUG_H__
#define __DEBUG_H__
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#if defined(NO_DEBUG) && defined(__GNUC__)
/* gcc's cpp has extensions; it allows for macros with a variable number of
arguments. We use this extension here to preprocess pmesg away. */
#define debug(level, format, args...) ((void)0)
#else
void debug(int level, char *format, ...);
/* print a message, if it is considered significant enough.
Adapted from [K&R2], p. 174 */
#endif
#endif /* DEBUG_H */