1
1
forked from 0ad/0ad

Avoid infinite recursion in debug_warn/assert2

This was SVN commit r1911.
This commit is contained in:
Ykkrosh 2005-02-05 19:14:56 +00:00
parent c710b84b88
commit afbf08ab1d

View File

@ -45,6 +45,13 @@ WIN_REGISTER_FUNC(wdbg_shutdown);
#pragma data_seg()
// debug_warn usually uses assert2, but we don't want to call that from
// inside an assert2 (from inside another assert2 (from inside another assert2
// (... etc))), so just use the normal assert
#undef debug_warn
#define debug_warn(str) assert(0 && (str))
static void set_exception_handler();