1
0
forked from 0ad/0ad

add debug_break and assert2

This was SVN commit r729.
This commit is contained in:
janwas 2004-07-12 16:48:10 +00:00
parent 7a199f8f16
commit 89d47437b4
2 changed files with 18 additions and 0 deletions

View File

@ -41,6 +41,21 @@ void check_heap()
#endif // #ifndef _WIN32
void debug_break()
{
#ifndef NDEBUG
# if defined(_WIN32)
win_debug_break();
# elif defined(_M_IX86)
ia32_debug_break();
# else
# error "port"
# endif
#endif
}
#ifdef _MSC_VER
double round(double x)

View File

@ -3,6 +3,7 @@
#ifdef _WIN32
#include "win/win.h"
#include "win/wdbg.h"
#endif
#include "config.h"
@ -16,6 +17,8 @@ extern void display_msg(const char* caption, const char* msg);
extern void wdisplay_msg(const wchar_t* caption, const wchar_t* msg);
extern void debug_out(const char* fmt, ...);
extern void debug_break();
extern void check_heap();
#ifdef _MSC_VER