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:
parent
be04d3a4f9
commit
fd53bb3738
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue