Leviathan  0.8.0.0
Leviathan game engine
Include.h
Go to the documentation of this file.
1 // Leviathan Game Engine
2 // Copyright (c) 2012-2017 Henri Hyyryläinen
3 #pragma once
4 //
5 // File configured by CMake do not edit Include.h //
6 //
7 
8 // UE4 Plugin version
9 #if == 1
10 
11 #ifndef LEVIATHAN_BUILD
12 #define LEVIATHAN_ASSERT(x, msg) ensureMsgf(x, TEXT(msg))
13 #endif //LEVIATHAN_BUILD
14 
15 #define DEBUG_BREAK LEVIATHAN_ASSERT(false, "Debug Break");
16 
17 #define LEVIATHAN_UE_PLUGIN
18 #define ALTERNATIVE_EXCEPTIONS_FATAL
19 #define ALLOW_INTERNAL_EXCEPTIONS
20 #define NO_DEFAULT_DATAINDEX
21 
22 #else
23 
24 // Sandbox is only used on windows
25 #ifndef _WIN32
26 #undef CEF_ENABLE_SANDBOB
27 #else
28 // #define CEF_ENABLE_SANDBOX
29 // I can't figure out how to link this as it its built with the wrong runtime type and
30 // I'd probably have to compile CEF myself if this is needed
31 #undef CEF_ENABLE_SANDBOB
32 #endif //_WIN32
33 
34 // If defined some select classes are leaked into global namespace
35 #define LEAK_INTO_GLOBAL
36 #define ALLOW_INTERNAL_EXCEPTIONS
37 #define LEVIATHAN_FULL
38 #endif
39 
40 #define LEVIATHAN_NO_DEBUG
41 #if LEVIATHAN_NO_DEBUG == 0
42 #undef LEVIATHAN_NO_DEBUG
43 #define LEVIATHAN_DEBUG
44 #endif //LEVIATHAN_NO_DEBUG
45 
46 #define LEVIATHAN_USING_ANGELSCRIPT
47 #if LEVIATHAN_USING_ANGELSCRIPT == 0
48 #undef LEVIATHAN_USING_ANGELSCRIPT
49 #endif //LEVIATHAN_USING_ANGELSCRIPT
50 
51 #define LEVIATHAN_USING_BOOST
52 #if LEVIATHAN_USING_BOOST == 0
53 #undef LEVIATHAN_USING_BOOST
54 #endif //LEVIATHAN_USING_BOOST
55 
56 #define LEVIATHAN_USING_OGRE
57 #if LEVIATHAN_USING_OGRE == 0
58 #undef LEVIATHAN_USING_OGRE
59 #endif //LEVIATHAN_USING_OGRE
60 
61 #define LEVIATHAN_USING_SFML
62 #if LEVIATHAN_USING_SFML == 0
63 #undef LEVIATHAN_USING_SFML
64 #else
65 #define SFML_PACKETS
66 #endif //LEVIATHAN_USING_SFML
67 
68 #define LEVIATHAN_USING_LEAP
69 #if LEVIATHAN_USING_LEAP == 0
70 #undef LEVIATHAN_USING_LEAP
71 #endif
72 
73 #define LEVIATHAN_USING_BREAKPAD
74 #if LEVIATHAN_USING_BREAKPAD == 0
75 #undef LEVIATHAN_USING_BREAKPAD
76 #endif
77 
78 #define LEVIATHAN_USING_SDL2
79 #if LEVIATHAN_USING_SDL2 == 0
80 #undef LEVIATHAN_USING_SDL2
81 #endif //LEVIATHAN_USING_SDL2
82 
83 #define LEVIATHAN_USE_ACTUAL_OBJECT_POOLS
84 
85 #define LEVIATHAN_VERSION 0.800
86 #define LEVIATHAN_VERSIONS L"0.8.0.0"
87 #define LEVIATHAN_VERSION_ANSIS "0.8.0.0"
88 
89 #define LEVIATHAN_VERSION_STABLE 0
90 #define LEVIATHAN_VERSION_MAJOR 8
91 #define LEVIATHAN_VERSION_MINOR 0
92 #define LEVIATHAN_VERSION_PATCH 0
93 
94 #define LEVIATHAN
95 
96 #ifdef __GNUC__
97 #define __FUNCSIG__ __PRETTY_FUNCTION__
98 #endif
99 
100 #ifndef DLLEXPORT
101 #ifdef ENGINE_EXPORTS
102 #ifdef _WIN32
103 #define DLLEXPORT __declspec( dllexport )
104 #else
105 // This might not be needed for gcc
106 #define DLLEXPORT __attribute__ ((visibility ("default")))
107 #endif
108 // Json-cpp //
109 #define JSON_DLL_BUILD
110 #else
111 
112 #ifdef _WIN32
113 #define DLLEXPORT __declspec( dllimport )
114 #else
115 #define DLLEXPORT
116 #endif
117 
118 
119 #define JSON_DLL
120 #endif // ENGINE_EXPORTS
121 #endif
122 
123 #ifndef FORCE_INLINE
124 #ifndef _WIN32
125 
126 #define FORCE_INLINE __attribute__((always_inline))
127 
128 #else
129 // Windows needs these //
130 #define FORCE_INLINE __forceinline
131 #endif
132 #endif //FORCE_INLINE
133 
134 #ifndef NOT_UNUSED
135 #define NOT_UNUSED(x) (void)x;
136 #endif //NOT_UNUSED
137 
138