diff options
author | Patric Stout <truebrain@openttd.org> | 2021-06-03 16:21:32 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-06-03 17:30:00 +0200 |
commit | f8dd5dd00a7aa3cc5769b4bce0a1b7a63073c8ce (patch) | |
tree | 9c80c98d939a224959d8ced48e9d65c032615e92 /src | |
parent | 48ecc481ee3b38702eb58f3cfef009d2ee5a9693 (diff) | |
download | openttd-f8dd5dd00a7aa3cc5769b4bce0a1b7a63073c8ce.tar.xz |
Codechange: remove unused assert_msg() macro
Diffstat (limited to 'src')
-rw-r--r-- | src/stdafx.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index 78188f8fa..dc52fc0d5 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -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) |