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-2019 Henri Hyyryläinen
3 #pragma once
4 //
5 // File configured by CMake do not edit Include.h //
6 //
7 
8 // #define ALTERNATIVE_EXCEPTIONS_FATAL
9 // #define NO_DEFAULT_DATAINDEX
10 
11 // If defined some select classes are leaked into global namespace
12 #define LEAK_INTO_GLOBAL
13 #define ALLOW_INTERNAL_EXCEPTIONS
14 
15 // Sandbox properly works on non-windows platforms
16 #ifndef _WIN32
17 #undef CEF_ENABLE_SANDBOB
18 #else
19 // #define CEF_ENABLE_SANDBOX
20 // I can't figure out how to link this as it its built with the wrong runtime type and
21 // I'd probably have to compile CEF myself if this is needed
22 #undef CEF_ENABLE_SANDBOB
23 #endif //_WIN32
24 
25 
26 
27 /* #undef LEVIATHAN_NO_DEBUG */
28 
29 /* #undef LEVIATHAN_USING_ANGELSCRIPT */
30 
31 /* #undef LEVIATHAN_USING_BOOST */
32 // Can't be disabled
33 #define LEVIATHAN_USING_BOOST
34 
35 /* #undef LEVIATHAN_USING_OGRE */
36 
37 /* #undef LEVIATHAN_USING_ANGELSCRIPT */
38 
39 /* #undef LEVIATHAN_USING_BULLET */
40 
41 /* #undef LEVIATHAN_USING_CEF */
42 
43 /* #undef LEVIATHAN_USING_SDL2 */
44 
45 /* #undef LEVIATHAN_USING_SFML */
46 #ifdef LEVIATHAN_USING_SFML
47 #define SFML_PACKETS
48 #endif // LEVIATHAN_USING_SFML
49 
50 /* #undef LEVIATHAN_USING_LEAP */
51 
52 #define LEVIATHAN_USE_ACTUAL_OBJECT_POOLS
53 
54 #define LEVIATHAN_VERSION 0.800
55 #define LEVIATHAN_VERSIONS L"0.8.0.0"
56 #define LEVIATHAN_VERSION_ANSIS "0.8.0.0"
57 
58 #define LEVIATHAN_VERSION_STABLE 0
59 #define LEVIATHAN_VERSION_MAJOR 8
60 #define LEVIATHAN_VERSION_MINOR 0
61 #define LEVIATHAN_VERSION_PATCH 0
62 
63 #define LEVIATHAN
64 
65 #ifdef __GNUC__
66 #define __FUNCSIG__ __PRETTY_FUNCTION__
67 #endif
68 
69 #ifndef DLLEXPORT
70 #ifdef ENGINE_EXPORTS
71 #ifdef _WIN32
72 #define DLLEXPORT __declspec(dllexport)
73 #else
74 // This might not be needed for gcc
75 #define DLLEXPORT __attribute__((visibility("default")))
76 #endif
77 // Json-cpp //
78 #define JSON_DLL_BUILD
79 #else
80 
81 #ifdef _WIN32
82 #define DLLEXPORT __declspec(dllimport)
83 #else
84 #define DLLEXPORT
85 #endif
86 
87 
88 #define JSON_DLL
89 #endif // ENGINE_EXPORTS
90 #endif
91 
92 #ifndef FORCE_INLINE
93 #ifndef _WIN32
94 
95 #define FORCE_INLINE __attribute__((always_inline))
96 
97 #else
98 // Windows needs these //
99 #define FORCE_INLINE __forceinline
100 #endif
101 #endif // FORCE_INLINE
102 
103 #ifndef NOT_UNUSED
104 #define NOT_UNUSED(x) (void)x;
105 #endif // NOT_UNUSED