diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 4d1bca0d..786c777c 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2016-10-05 03:31:05.813723 UTC -// This header was generated with sol v2.14.9 (revision dd03161) +// Generated 2016-10-05 04:59:38.196043 UTC +// This header was generated with sol v2.14.9 (revision 009d6b0) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP diff --git a/sol.hpp b/sol.hpp index 1556728e..fcde72bb 100644 --- a/sol.hpp +++ b/sol.hpp @@ -22,6 +22,17 @@ #ifndef SOL_HPP #define SOL_HPP +#if defined(UE_BUILD_DEBUG) || defined(UE_BUILD_DEVELOPMENT) || defined(UE_BUILD_TEST) || defined(UE_BUILD_SHIPPING) || defined(UE_SERVER) +#define SOL_INSIDE_UNREAL +#endif // Unreal Engine 4 bullshit + +#ifdef SOL_INSIDE_UNREAL +#ifdef check +#define SOL_INSIDE_UNREAL_REMOVED_CHECK +#undef check +#endif +#endif // Unreal Engine 4 Bullshit + #include "sol/state.hpp" #include "sol/object.hpp" #include "sol/function.hpp" @@ -30,4 +41,10 @@ #include "sol/coroutine.hpp" #include "sol/variadic_args.hpp" +#ifdef SOL_INSIDE_UNREAL +#ifdef SOL_INSIDE_UNREAL_REMOVED_CHECK +#define check(expr) { if(UNLIKELY(!(expr))) { FDebug::LogAssertFailedMessage( #expr, __FILE__, __LINE__ ); _DebugBreakAndPromptForRemote(); FDebug::AssertFailed( #expr, __FILE__, __LINE__ ); CA_ASSUME(false); } }} +#endif +#endif // Unreal Engine 4 Bullshit + #endif // SOL_HPP