add header and include guard

This was SVN commit r6173.
This commit is contained in:
janwas 2008-07-02 06:21:06 +00:00
parent 2b43a45d1c
commit 0d82179d64

View File

@ -1,3 +1,16 @@
/**
* =========================================================================
* File : wdbg.h
* Project : 0 A.D.
* Description : Win32 debug support code.
* =========================================================================
*/
// license: GPL; see lib/license.txt
#ifndef INCLUDED_WDBG
#define INCLUDED_WDBG
/**
* same as debug_printf except that some type conversions aren't supported
* (in particular, no floating point).
@ -12,3 +25,5 @@ LIB_API void wdbg_printf(const char* fmt, ...);
* while under the heap or dbghelp locks.
**/
#define wdbg_assert(expr) STMT(if(!(expr)) debug_break();)
#endif // #ifndef INCLUDED_WDBG