aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-04-15 18:31:30 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-04-15 18:31:30 +0200
commite7276bee137b87a2323b125a6a8c792de73819eb (patch)
tree0457187b99121a8935823e0b6c858808ffeb1d29 /src/lanes.h
parentc21b52ad18bcabf084f8dba40d1a09d9e52051bd (diff)
downloadlanes-e7276bee137b87a2323b125a6a8c792de73819eb.tar.gz
lanes-e7276bee137b87a2323b125a6a8c792de73819eb.tar.bz2
lanes-e7276bee137b87a2323b125a6a8c792de73819eb.zip
C++ migration: inter-state transfer managed by a new class InterCopyContext
Diffstat (limited to 'src/lanes.h')
-rw-r--r--src/lanes.h4
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()
26LANES_API void luaopen_lanes_embedded(lua_State* L, lua_CFunction _luaopen_lanes); 28LANES_API void luaopen_lanes_embedded(lua_State* L, lua_CFunction _luaopen_lanes);
29using luaopen_lanes_embedded_t = void (*)(lua_State* L, lua_CFunction luaopen_lanes_);
30static_assert(std::is_same_v<decltype(&luaopen_lanes_embedded), luaopen_lanes_embedded_t>, "signature changed: check all uses of luaopen_lanes_embedded_t");