00001 /***************************************************************** 00002 | 00003 | Neptune - Debug Utilities 00004 | 00005 | (c) 2001-2006 Gilles Boccon-Gibod 00006 | Author: Gilles Boccon-Gibod (bok@bok.net) 00007 | 00008 ****************************************************************/ 00009 00010 #ifndef _NPT_DEBUG_H_ 00011 #define _NPT_DEBUG_H_ 00012 00013 /*---------------------------------------------------------------------- 00014 | includes 00015 +---------------------------------------------------------------------*/ 00016 #include "NptConfig.h" 00017 00018 /*---------------------------------------------------------------------- 00019 | standard macros 00020 +---------------------------------------------------------------------*/ 00021 #if defined(NPT_CONFIG_HAVE_ASSERT_H) && defined(NPT_DEBUG) 00022 #include <assert.h> 00023 #define NPT_ASSERT(x) assert(x) 00024 #else 00025 #define NPT_ASSERT(x) ((void)0) 00026 #endif 00027 00028 /*---------------------------------------------------------------------- 00029 | NPT_Debug 00030 +---------------------------------------------------------------------*/ 00031 extern void NPT_Debug(const char* format, ...); 00032 00033 #endif // _NPT_DEBUG_H_