[ci-skip] Unreal 4 checks

This commit is contained in:
ThePhD 2016-10-05 00:59:53 -04:00
parent 009d6b0fa9
commit d51db7d23d
2 changed files with 19 additions and 2 deletions

View File

@ -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

17
sol.hpp
View File

@ -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