mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
enable stl asserts
This commit is contained in:
@@ -570,11 +570,13 @@
|
||||
# define __STL_UNWIND(action)
|
||||
# endif
|
||||
|
||||
#define __STL_ASSERTIONS
|
||||
|
||||
#ifdef __STL_ASSERTIONS
|
||||
# include <stdio.h>
|
||||
# define __stl_assert(expr) \
|
||||
if (!(expr)) { fprintf(stderr, "%s:%d STL assertion failure: %s\n", \
|
||||
__FILE__, __LINE__, # expr); abort(); }
|
||||
# include <asserts.hpp>
|
||||
# define __stl_assert(expr) assert2(expr, "STL Assert fail") ;
|
||||
// if (!(expr)) { fprintf(stderr, "%s:%d STL assertion failure: %s\n", \
|
||||
// __FILE__, __LINE__, # expr); abort(); }
|
||||
#else
|
||||
# define __stl_assert(expr)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user