# HG changeset patch # User Patric Stout # Date 2021-06-03 14:21:32 # Node ID cd877c43926d56fcb89875e3e555b661bf5448c5 # Parent 9fd83ce1866393b1f5d731a4a7f78e1bd08b32ec Codechange: remove unused assert_msg() macro diff --git a/src/stdafx.h b/src/stdafx.h --- a/src/stdafx.h +++ b/src/stdafx.h @@ -438,9 +438,6 @@ void NORETURN CDECL error(const char *st /* 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)