diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-27 16:30:26 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-27 16:30:26 +0200 |
commit | 0d3b030eb92657dc276a6188f61e5cfdd7e265cb (patch) | |
tree | beb48685c3c300f3af5261799b8111f081f8230c /src/lane.h | |
parent | 09c4750ef8973c08d6ef2aba70f5385ffd75f4c4 (diff) | |
download | lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.gz lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.bz2 lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.zip |
Optional Decoda support (disabled by default)
Diffstat (limited to 'src/lane.h')
-rw-r--r-- | src/lane.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -13,6 +13,9 @@ | |||
13 | 13 | ||
14 | // ################################################################################################# | 14 | // ################################################################################################# |
15 | 15 | ||
16 | // xxh64 of string "kExtendedStackTraceRegKey" generated at https://www.pelock.com/products/hash-calculator | ||
17 | static constexpr RegistryUniqueKey kExtendedStackTraceRegKey{ 0x38147AD48FB426E2ull }; // used as registry key | ||
18 | |||
16 | /* | 19 | /* |
17 | * registry[FINALIZER_REG_KEY] is either nil (no finalizers) or a table | 20 | * registry[FINALIZER_REG_KEY] is either nil (no finalizers) or a table |
18 | * of functions that Lanes will call after the executing 'pcall' has ended. | 21 | * of functions that Lanes will call after the executing 'pcall' has ended. |
@@ -24,15 +27,15 @@ | |||
24 | // xxh64 of string "kFinalizerRegKey" generated at https://www.pelock.com/products/hash-calculator | 27 | // xxh64 of string "kFinalizerRegKey" generated at https://www.pelock.com/products/hash-calculator |
25 | static constexpr RegistryUniqueKey kFinalizerRegKey{ 0xFE936BFAA718FEEAull }; | 28 | static constexpr RegistryUniqueKey kFinalizerRegKey{ 0xFE936BFAA718FEEAull }; |
26 | 29 | ||
27 | // xxh64 of string "kExtendedStackTraceRegKey" generated at https://www.pelock.com/products/hash-calculator | ||
28 | static constexpr RegistryUniqueKey kExtendedStackTraceRegKey{ 0x38147AD48FB426E2ull }; // used as registry key | ||
29 | |||
30 | // xxh64 of string "kLaneGC" generated at https://www.pelock.com/products/hash-calculator | 30 | // xxh64 of string "kLaneGC" generated at https://www.pelock.com/products/hash-calculator |
31 | static constexpr UniqueKey kLaneGC{ 0x5D6122141727F960ull }; | 31 | static constexpr UniqueKey kLaneGC{ 0x5D6122141727F960ull }; |
32 | 32 | ||
33 | // xxh64 of string "kLanePointerRegKey" generated at https://www.pelock.com/products/hash-calculator | 33 | // xxh64 of string "kLanePointerRegKey" generated at https://www.pelock.com/products/hash-calculator |
34 | static constexpr RegistryUniqueKey kLanePointerRegKey{ 0x2D8CF03FE9F0A51Aull }; // used as registry key | 34 | static constexpr RegistryUniqueKey kLanePointerRegKey{ 0x2D8CF03FE9F0A51Aull }; // used as registry key |
35 | 35 | ||
36 | // xxh64 of string "debugName" generated at https://www.pelock.com/products/hash-calculator | ||
37 | static constexpr RegistryUniqueKey kLaneNameRegKey{ 0xA194E2645C57F6DDull }; | ||
38 | |||
36 | // ################################################################################################# | 39 | // ################################################################################################# |
37 | 40 | ||
38 | // The chain is ended by '(Lane*)(-1)', not nullptr: 'selfdestructFirst -> ... -> ... -> (-1)' | 41 | // The chain is ended by '(Lane*)(-1)', not nullptr: 'selfdestructFirst -> ... -> ... -> (-1)' |
@@ -124,7 +127,7 @@ class Lane | |||
124 | Lane(Universe* U_, lua_State* L_, ErrorTraceLevel errorTraceLevel_); | 127 | Lane(Universe* U_, lua_State* L_, ErrorTraceLevel errorTraceLevel_); |
125 | ~Lane(); | 128 | ~Lane(); |
126 | 129 | ||
127 | void changeDebugName(int nameIdx_); | 130 | void changeDebugName(int const nameIdx_); |
128 | void close() { lua_State* _L{ L }; L = nullptr; lua_close(_L); } | 131 | void close() { lua_State* _L{ L }; L = nullptr; lua_close(_L); } |
129 | [[nodiscard]] std::string_view errorTraceLevelString() const; | 132 | [[nodiscard]] std::string_view errorTraceLevelString() const; |
130 | [[nodiscard]] int pushErrorHandler() const; | 133 | [[nodiscard]] int pushErrorHandler() const; |