aboutsummaryrefslogtreecommitdiff
path: root/src/deep.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/deep.h')
-rw-r--r--src/deep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/deep.h b/src/deep.h
index 28069fe..673e93a 100644
--- a/src/deep.h
+++ b/src/deep.h
@@ -30,14 +30,14 @@ enum class LookupMode
30 30
31// ################################################################################################# 31// #################################################################################################
32 32
33// xxh64 of string "DEEP_VERSION_3" generated at https://www.pelock.com/products/hash-calculator 33// xxh64 of string "kDeepVersion_1" generated at https://www.pelock.com/products/hash-calculator
34static constexpr UniqueKey DEEP_VERSION{ 0xB2CC0FD9C0AE9674ull, "DEEP_VERSION_3" }; 34static constexpr UniqueKey kDeepVersion{ 0x91171AEC6641E9DBull, "kDeepVersion" };
35 35
36// should be used as header for deep userdata 36// should be used as header for deep userdata
37// a deep userdata is a full userdata that stores a single pointer to the actual DeepPrelude-derived object 37// a deep userdata is a full userdata that stores a single pointer to the actual DeepPrelude-derived object
38struct DeepPrelude 38struct DeepPrelude
39{ 39{
40 UniqueKey const m_magic{ DEEP_VERSION }; 40 UniqueKey const m_magic{ kDeepVersion };
41 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory 41 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory
42 class DeepFactory& m_factory; 42 class DeepFactory& m_factory;
43 // data is destroyed when refcount is 0 43 // data is destroyed when refcount is 0