diff options
Diffstat (limited to 'src/lanes.h')
-rw-r--r-- | src/lanes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lanes.h b/src/lanes.h index bc8de55..6f8a084 100644 --- a/src/lanes.h +++ b/src/lanes.h | |||
@@ -10,6 +10,8 @@ extern "C" { | |||
10 | 10 | ||
11 | #include "lanesconf.h" | 11 | #include "lanesconf.h" |
12 | 12 | ||
13 | #include <type_traits> | ||
14 | |||
13 | #define LANES_VERSION_MAJOR 4 | 15 | #define LANES_VERSION_MAJOR 4 |
14 | #define LANES_VERSION_MINOR 0 | 16 | #define LANES_VERSION_MINOR 0 |
15 | #define LANES_VERSION_PATCH 0 | 17 | #define LANES_VERSION_PATCH 0 |
@@ -24,3 +26,5 @@ LANES_API [[nodiscard]] int luaopen_lanes_core(lua_State* L); | |||
24 | 26 | ||
25 | // Call this to work with embedded Lanes instead of calling luaopen_lanes_core() | 27 | // Call this to work with embedded Lanes instead of calling luaopen_lanes_core() |
26 | LANES_API void luaopen_lanes_embedded(lua_State* L, lua_CFunction _luaopen_lanes); | 28 | LANES_API void luaopen_lanes_embedded(lua_State* L, lua_CFunction _luaopen_lanes); |
29 | using luaopen_lanes_embedded_t = void (*)(lua_State* L, lua_CFunction luaopen_lanes_); | ||
30 | static_assert(std::is_same_v<decltype(&luaopen_lanes_embedded), luaopen_lanes_embedded_t>, "signature changed: check all uses of luaopen_lanes_embedded_t"); | ||