Skip to content

Commit

Permalink
Remove STATIC_CHECK macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 4, 2017
1 parent d6ea761 commit 8bc6bf8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
11 changes: 0 additions & 11 deletions src/xrCore/xrDebug_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,4 @@
#define todo(x) message(__FILE__LINE__" TODO : " #x "\n")
#define fixme(x) message(__FILE__LINE__" FIXME: " #x "\n")

//--------- static assertion
template <bool>
struct CompileTimeError;
template <>
struct CompileTimeError<true>
{};
#define STATIC_CHECK(expr, msg)\
{\
CompileTimeError<((expr)!=0)> ERROR_##msg;\
(void)ERROR_##msg;\
}
#endif // xrDebug_macrosH
5 changes: 0 additions & 5 deletions src/xrScriptEngine/LuaStudio/Defines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

#pragma once

// STATIC_CHECK macro
#ifndef STATIC_CHECK
#define STATIC_CHECK(expr, msg) typedef char ERROR_##msg[1][(expr)]
#endif // #ifndef STATIC_CHECK

// DECLSPEC_NOVTABLE macro
#ifndef DECLSPEC_NOVTABLE
#if (_MSC_VER >= 1100) && defined(__cplusplus)
Expand Down
1 change: 0 additions & 1 deletion src/xrServerEntities/smart_cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#define smart_cast dynamic_cast
#else
#define TL_FAST_COMPILATION
#undef STATIC_CHECK
#include <loki/Typelist.h>

#define PURE_DYNAMIC_CAST_COMPATIBILITY_CHECK
Expand Down

0 comments on commit 8bc6bf8

Please sign in to comment.