Usermode - Adding hacky pthreads support
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / _libcxx_helpers.h
index e131c42..755337d 100644 (file)
@@ -8,5 +8,23 @@
 # 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 *, ...);
+};
+
+#if _CXX11_AVAIL
+#define _CXX11_MOVE(val)       ::std::move(val)
+#else
+#define _CXX11_MOVE(val)       val
+#endif
+
 #endif
 

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