Fixed some C/C++ compiler errors due to stricter checks.
[rubinius.git] / machine / bug.hpp
blobe3abbd0f27b4aadcdeca8d2fb6e27ddf730821f5
1 #ifndef RBX_BUG_HPP
2 #define RBX_BUG_HPP
4 #include <sys/types.h>
6 #ifndef NORETURN
7 #define NORETURN(x) __attribute__ ((noreturn)) x
8 #endif
10 namespace rubinius {
11 NORETURN(void bug(void));
12 NORETURN(void bug(const char* message));
13 NORETURN(void bug(const char* message, const char* arg));
14 void warn(const char* message);
15 void print_backtrace(size_t max=100);
18 #endif