Move #include <signal.h> out of namespace dcx

Reported-by: derhass <https://github.com/dxx-rebirth/dxx-rebirth/issues/170>
This commit is contained in:
Kp 2015-12-23 03:28:17 +00:00
parent be04d3a4f9
commit fd53bb3738

View file

@ -67,6 +67,8 @@ static inline void UserError_puts(const char (&str)[len])
UserError_puts(str, len - 1);
}
void UserError(const char *fmt, ...) __noreturn __attribute_format_printf(1, 2);
}
#define UserError(F,...) dxx_call_printf_checked(UserError,(UserError_puts),(),(F),##__VA_ARGS__)
#define Assert assert
@ -105,6 +107,8 @@ void UserError(const char *fmt, ...) __noreturn __attribute_format_printf(1, 2);
#endif
namespace dcx {
// Encourage optimizer to treat d_debugbreak paths as unlikely
__attribute_cold
// Requested by btb to force Xcode to stay in the calling function