diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-28 17:24:30 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-28 17:24:30 +0100 |
commit | c1859c3bab84dd1e712b946f4976702cfd9db5d2 (patch) | |
tree | 760bc5caf416e27eeea66e7a9e517db092286e3a /src/lanes.hpp | |
parent | 0c23f179a46f919adf075b46f4cb8cbff3fc8ebb (diff) | |
download | lanes-c1859c3bab84dd1e712b946f4976702cfd9db5d2.tar.gz lanes-c1859c3bab84dd1e712b946f4976702cfd9db5d2.tar.bz2 lanes-c1859c3bab84dd1e712b946f4976702cfd9db5d2.zip |
Renamed _pch.h → _pch.hpp, deep.h → deep.hpp, lanes.h → lanes.hpp
Diffstat (limited to 'src/lanes.hpp')
-rw-r--r-- | src/lanes.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lanes.hpp b/src/lanes.hpp new file mode 100644 index 0000000..a3731e4 --- /dev/null +++ b/src/lanes.hpp | |||
@@ -0,0 +1,20 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "lanesconf.h" | ||
4 | |||
5 | #define LANES_VERSION_MAJOR 4 | ||
6 | #define LANES_VERSION_MINOR 0 | ||
7 | #define LANES_VERSION_PATCH 0 | ||
8 | |||
9 | #define LANES_MIN_VERSION_REQUIRED(MAJOR, MINOR, PATCH) ((LANES_VERSION_MAJOR > MAJOR) || (LANES_VERSION_MAJOR == MAJOR && (LANES_VERSION_MINOR > MINOR || (LANES_VERSION_MINOR == MINOR && LANES_VERSION_PATCH >= PATCH)))) | ||
10 | #define LANES_VERSION_LESS_THAN(MAJOR, MINOR, PATCH) ((LANES_VERSION_MAJOR < MAJOR) || (LANES_VERSION_MAJOR == MAJOR && (LANES_VERSION_MINOR < MINOR || (LANES_VERSION_MINOR == MINOR && LANES_VERSION_PATCH < PATCH)))) | ||
11 | #define LANES_VERSION_LESS_OR_EQUAL(MAJOR, MINOR, PATCH) ((LANES_VERSION_MAJOR < MAJOR) || (LANES_VERSION_MAJOR == MAJOR && (LANES_VERSION_MINOR < MINOR || (LANES_VERSION_MINOR == MINOR && LANES_VERSION_PATCH <= PATCH)))) | ||
12 | #define LANES_VERSION_GREATER_THAN(MAJOR, MINOR, PATCH) ((LANES_VERSION_MAJOR > MAJOR) || (LANES_VERSION_MAJOR == MAJOR && (LANES_VERSION_MINOR > MINOR || (LANES_VERSION_MINOR == MINOR && LANES_VERSION_PATCH > PATCH)))) | ||
13 | #define LANES_VERSION_GREATER_OR_EQUAL(MAJOR, MINOR, PATCH) ((LANES_VERSION_MAJOR > MAJOR) || (LANES_VERSION_MAJOR == MAJOR && (LANES_VERSION_MINOR > MINOR || (LANES_VERSION_MINOR == MINOR && LANES_VERSION_PATCH >= PATCH)))) | ||
14 | |||
15 | LANES_API int luaopen_lanes_core(lua_State* L_); | ||
16 | |||
17 | // Call this to work with embedded Lanes instead of calling luaopen_lanes_core() | ||
18 | LANES_API void luaopen_lanes_embedded(lua_State* L_, lua_CFunction luaopen_lanes_); | ||
19 | using luaopen_lanes_embedded_t = void (*)(lua_State* L_, lua_CFunction luaopen_lanes_); | ||
20 | static_assert(std::is_same_v<decltype(&luaopen_lanes_embedded), luaopen_lanes_embedded_t>, "signature changed: check all uses of luaopen_lanes_embedded_t"); | ||