Codechange: remove unused assert_msg() macro

pull/332/head
Patric Stout 3 years ago committed by Patric Stout
parent 48ecc481ee
commit f8dd5dd00a

@ -438,9 +438,6 @@ void NORETURN CDECL error(const char *str, ...) WARN_FORMAT(1, 2);
/* Asserts are enabled if NDEBUG isn't defined or WITH_ASSERT is defined. */
#if !defined(NDEBUG) || defined(WITH_ASSERT)
# define OTTD_ASSERT
# define assert_msg(expression, msg, ...) if (unlikely(!(expression))) error("Assertion failed at line %i of %s: %s\n\t" msg, __LINE__, __FILE__, #expression, __VA_ARGS__);
#else
# define assert_msg(expression, msg, ...)
#endif
#if defined(OPENBSD)

Loading…
Cancel
Save