add debug_break and assert2
This was SVN commit r729.
This commit is contained in:
parent
7a199f8f16
commit
89d47437b4
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user