d2f8b230f852cae4f581640c9eddbf5c357f1af5
[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 };
22
23 #endif
24

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