diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-09 09:43:24 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-09 09:43:24 +0200 |
commit | ea290e120ee0069e0c4a983d49fb69fc942dc3f2 (patch) | |
tree | d98f519b0a39f0f195b91f78ae62e040b5c59a79 /src/compat.h | |
parent | 08ceea621246a5085d75d698af5e7968262f4b3a (diff) | |
download | lanes-ea290e120ee0069e0c4a983d49fb69fc942dc3f2.tar.gz lanes-ea290e120ee0069e0c4a983d49fb69fc942dc3f2.tar.bz2 lanes-ea290e120ee0069e0c4a983d49fb69fc942dc3f2.zip |
Improved Unique<> implementation, moved StackIndex into a separate header
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compat.h b/src/compat.h index 90e72a3..081e4c7 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "debug.h" | 3 | #include "debug.h" |
4 | #include "stackindex.hpp" | ||
4 | 5 | ||
5 | // try to detect if we are building against LuaJIT or MoonJIT | 6 | // try to detect if we are building against LuaJIT or MoonJIT |
6 | #if defined(LUA_JITLIBNAME) | 7 | #if defined(LUA_JITLIBNAME) |
@@ -32,10 +33,6 @@ | |||
32 | 33 | ||
33 | // ################################################################################################# | 34 | // ################################################################################################# |
34 | 35 | ||
35 | static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; | ||
36 | |||
37 | // ################################################################################################# | ||
38 | |||
39 | // a strong-typed wrapper over lua types to see them easier in a debugger | 36 | // a strong-typed wrapper over lua types to see them easier in a debugger |
40 | enum class LuaType | 37 | enum class LuaType |
41 | { | 38 | { |