00001 /***************************************************************** 00002 | 00003 | Atomix - Common Definitions 00004 | 00005 | (c) 2002-2006 Gilles Boccon-Gibod 00006 | Author: Gilles Boccon-Gibod (bok@bok.net) 00007 | 00008 ****************************************************************/ 00013 #ifndef _ATX_DEBUG_H_ 00014 #define _ATX_DEBUG_H_ 00015 00016 /*---------------------------------------------------------------------- 00017 | includes 00018 +---------------------------------------------------------------------*/ 00019 #if defined(ATX_CONFIG_HAVE_ASSERT_H) && defined(ATX_DEBUG) 00020 #include <assert.h> 00021 #define ATX_ASSERT(_x) assert(_x) 00022 #else 00023 #define ATX_ASSERT(_x) ((void)0) 00024 #endif 00025 00026 /*---------------------------------------------------------------------- 00027 | prototypes 00028 +---------------------------------------------------------------------*/ 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif /* __cplusplus */ 00032 00033 extern void ATX_Debug(const char* format, ...); 00034 extern void ATX_DebugOutput(const char* message); 00035 00036 #ifdef __cplusplus 00037 } 00038 #endif /* __cplusplus */ 00039 00040 #endif /* _ATX_DEBUG_H_ */