Skip to content

Commit 8bc6bf8

Browse files
committed
Remove STATIC_CHECK macro
1 parent d6ea761 commit 8bc6bf8

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

src/xrCore/xrDebug_macros.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,4 @@
141141
#define todo(x) message(__FILE__LINE__" TODO : " #x "\n")
142142
#define fixme(x) message(__FILE__LINE__" FIXME: " #x "\n")
143143

144-
//--------- static assertion
145-
template <bool>
146-
struct CompileTimeError;
147-
template <>
148-
struct CompileTimeError<true>
149-
{};
150-
#define STATIC_CHECK(expr, msg)\
151-
{\
152-
CompileTimeError<((expr)!=0)> ERROR_##msg;\
153-
(void)ERROR_##msg;\
154-
}
155144
#endif // xrDebug_macrosH

src/xrScriptEngine/LuaStudio/Defines.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
#pragma once
1010

11-
// STATIC_CHECK macro
12-
#ifndef STATIC_CHECK
13-
#define STATIC_CHECK(expr, msg) typedef char ERROR_##msg[1][(expr)]
14-
#endif // #ifndef STATIC_CHECK
15-
1611
// DECLSPEC_NOVTABLE macro
1712
#ifndef DECLSPEC_NOVTABLE
1813
#if (_MSC_VER >= 1100) && defined(__cplusplus)

src/xrServerEntities/smart_cast.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#define smart_cast dynamic_cast
1818
#else
1919
#define TL_FAST_COMPILATION
20-
#undef STATIC_CHECK
2120
#include <loki/Typelist.h>
2221

2322
#define PURE_DYNAMIC_CAST_COMPATIBILITY_CHECK

0 commit comments

Comments
 (0)