CommonLibSSE NG
Common.h
Go to the documentation of this file.
1 #pragma once
2 
3 #if defined(ENABLE_SKYRIM_VR) && (defined(ENABLE_SKYRIM_AE) || defined(ENABLE_SKYRIM_SE))
7 #define SKYRIM_CROSS_VR
8 #endif
9 
10 #if !defined(ENABLE_SKYRIM_AE) || (!defined(ENABLE_SKYRIM_SE) && !defined(ENABLE_SKYRIM_VR))
18 #define SKYRIM_ADDR constexpr
19 #else
27 #define SKYRIM_ADDR inline
28 #endif
29 
30 #if (!defined(ENABLE_SKYRIM_AE) && !defined(ENABLE_SKYRIM_VR)) || (!defined(ENABLE_SKYRIM_SE) && !defined(ENABLE_SKYRIM_VR)) || (!defined(ENABLE_SKYRIM_AE) && !defined(ENABLE_SKYRIM_SE))
38 #define SKYRIM_REL constexpr
39 
47 #define SKYRIM_REL_CONSTEXPR constexpr
48 #else
56 #define SKYRIM_REL inline
57 
65 #define SKYRIM_REL_CONSTEXPR
66 #endif
67 
68 #ifndef SKYRIM_CROSS_VR
76 #define SKYRIM_REL_VR constexpr
77 
85 #define SKYRIM_REL_VR_CONSTEXPR constexpr
86 
94 #define SKYRIM_REL_VR_VIRTUAL virtual
95 #else
103 #define SKYRIM_REL_VR inline
104 
112 #define SKYRIM_REL_VR_CONSTEXPR
113 
121 #define SKYRIM_REL_VR_VIRTUAL
122 #endif