12345678910111213141516171819202122232425262728 |
- // debug.h :
- //
- #if !defined(AGD_DEBUG_H__39391BF3_0394_4846_BFCB_028512359FF5__INCLUDED_)
- #define AGD_DEBUG_H__39391BF3_0394_4846_BFCB_028512359FF5__INCLUDED_
- #include <assert.h>
- #include <stdio.h>
- /////////////////////////////////////////////////////////////////////////////
- // debug.h - Declarations:
- #ifdef _DEBUG
- #define TRACE(...) printf(__VA_ARGS__), fflush(stdout)
- #define ETRACE(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
- #define ASSERT assert
- #else // _DEBUG
- #define TRACE(...) (void)0
- #define ETRACE(...) (void)0
- #define ASSERT(e) (void)0
- #endif // _DEBUG
- #ifndef UNUSED
- #define UNUSED(p) (void)p
- #endif // UNUSED
- /////////////////////////////////////////////////////////////////////////////
- #endif // !defined(AGD_DEBUG_H__39391BF3_0394_4846_BFCB_028512359FF5__INCLUDED_)
|