Build - Fix build quirks for fresh
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / _libcxx_helpers.h
index 0537537..bd3b805 100644 (file)
@@ -8,9 +8,24 @@
 # 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 *, ...);
+extern void hexdump(const char *, const void *, unsigned int);
 };
 
+#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