summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-12-27 09:56:43 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-12-27 10:30:55 +0000
commit52f3abba6ef2e5a69b58cf71fdcdaa75d603b062 (patch)
tree6820fbe56413636b766fc4d50d88995d0dd34338 /src/stdafx.h
parentd8605ad18da2a00fceb72b38325374b341ac6f16 (diff)
downloadopenttd-52f3abba6ef2e5a69b58cf71fdcdaa75d603b062.tar.xz
Cleanup: Remove unnecessary assert_tcompile macro
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index c421c55aa..5b9281a28 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -348,19 +348,14 @@ typedef unsigned char byte;
# define PERSONAL_DIR ""
#endif
-/* Compile time assertions. Prefer c++0x static_assert().
- * Older compilers cannot evaluate some expressions at compile time,
- * typically when templates are involved, try assert_tcompile() in those cases. */
+/* Compile time assertions. Prefer c++0x static_assert(). */
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)
# define assert_compile(expr) static_assert(expr, #expr )
-# define assert_tcompile(expr) assert_compile(expr)
#elif defined(__OS2__)
/* Disabled for OS/2 */
# define assert_compile(expr)
-# define assert_tcompile(expr) assert_compile(expr)
#else
# define assert_compile(expr) typedef int __ct_assert__[1 - 2 * !(expr)]
-# define assert_tcompile(expr) assert(expr)
#endif
/* Check if the types have the bitsizes like we are using them */