enable stl asserts

This commit is contained in:
2024-03-23 22:17:25 +01:00
parent b3171fe3cc
commit 0626d7af0e

View File

@@ -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