Usermode/libc++ - Implement map::insert and map::erase
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / _libcxx_helpers.h
1
2 #ifndef _LIBCXX__LIBCXX_HELEPRS_H_
3 #define _LIBCXX__LIBCXX_HELEPRS_H_
4
5 #if __cplusplus > 199711L       // C++11 check
6 # define _CXX11_AVAIL   1
7 #else
8 # define _CXX11_AVAIL   0
9 #endif
10
11 #define _libcxx_assert(cnd) do { \
12         if(!(cnd)) {\
13                 ::_sys::debug("libc++ assert failure %s:%i - %s", __FILE__, __LINE__, #cnd);\
14                 ::_sys::abort(); \
15         } \
16 } while(0)
17
18 namespace _sys {
19 extern void abort() __asm__ ("abort") __attribute__((noreturn));
20 extern void debug(const char *, ...);
21 extern void hexdump(const char *, const void *, unsigned int);
22 };
23
24 #if _CXX11_AVAIL
25 #define _CXX11_MOVE(val)        ::std::move(val)
26 #else
27 #define _CXX11_MOVE(val)        val
28 #endif
29
30 #endif
31

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