1 // The MIT License (MIT)
2 
3 // Copyright (c) 2013-2016 Rapptz, ThePhD and contributors
4 
5 // Permission is hereby granted, free of charge, to any person obtaining a copy of
6 // this software and associated documentation files (the "Software"), to deal in
7 // the Software without restriction, including without limitation the rights to
8 // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 // the Software, and to permit persons to whom the Software is furnished to do so,
10 // subject to the following conditions:
11 
12 // The above copyright notice and this permission notice shall be included in all
13 // copies or substantial portions of the Software.
14 
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 
22 #ifndef SOL_HPP
23 #define SOL_HPP
24 
25 #if defined(UE_BUILD_DEBUG) || defined(UE_BUILD_DEVELOPMENT) || defined(UE_BUILD_TEST) || defined(UE_BUILD_SHIPPING) || defined(UE_SERVER)
26 #define SOL_INSIDE_UNREAL
27 #endif // Unreal Engine 4 bullshit
28 
29 #ifdef SOL_INSIDE_UNREAL
30 #ifdef check
31 #define SOL_INSIDE_UNREAL_REMOVED_CHECK
32 #undef check
33 #endif
34 #endif // Unreal Engine 4 Bullshit
35 
36 #ifdef __GNUC__
37 #pragma GCC diagnostic push
38 #pragma GCC diagnostic ignored "-Wshadow"
39 #pragma GCC diagnostic ignored "-Wconversion"
40 #elif defined _MSC_VER
41 #pragma warning( push )
42 #pragma warning( disable : 4324 ) // structure was padded due to alignment specifier
43 #endif // g++
44 
45 #include "sol/state.hpp"
46 #include "sol/object.hpp"
47 #include "sol/function.hpp"
48 #include "sol/protected_function.hpp"
49 #include "sol/state.hpp"
50 #include "sol/coroutine.hpp"
51 #include "sol/variadic_args.hpp"
52 
53 #ifdef __GNUC__
54 #pragma GCC diagnostic pop
55 #elif defined _MSC_VER
56 #pragma warning( push )
57 #endif // g++
58 
59 #ifdef SOL_INSIDE_UNREAL
60 #ifdef SOL_INSIDE_UNREAL_REMOVED_CHECK
61 #define check(expr) { if(UNLIKELY(!(expr))) { FDebug::LogAssertFailedMessage( #expr, __FILE__, __LINE__ ); _DebugBreakAndPromptForRemote(); FDebug::AssertFailed( #expr, __FILE__, __LINE__ ); CA_ASSUME(false); } }}
62 #endif
63 #endif // Unreal Engine 4 Bullshit
64 
65 #endif // SOL_HPP
66