Usermode/libc++ - STL Fix string termination, silence map debug
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / _libcxx_helpers.h
index 0537537..d2f8b23 100644 (file)
@@ -8,7 +8,15 @@
 # define _CXX11_AVAIL  0
 #endif
 
+#define _libcxx_assert(cnd) do { \
+       if(!(cnd)) {\
+               ::_sys::debug("libc++ assert failure %s:%i - %s", __FILE__, __LINE__, #cnd);\
+               ::_sys::abort(); \
+       } \
+} while(0)
+
 namespace _sys {
+extern void abort() __asm__ ("abort") __attribute__((noreturn));
 extern void debug(const char *, ...);
 };
 

UCC git Repository :: git.ucc.asn.au