diff options
Diffstat (limited to 'src/deep.h')
-rw-r--r-- | src/deep.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -38,14 +38,14 @@ static constexpr UniqueKey kDeepVersion{ 0x91171AEC6641E9DBull, "kDeepVersion" } | |||
38 | // a deep userdata is a full userdata that stores a single pointer to the actual DeepPrelude-derived object | 38 | // a deep userdata is a full userdata that stores a single pointer to the actual DeepPrelude-derived object |
39 | struct DeepPrelude | 39 | struct DeepPrelude |
40 | { | 40 | { |
41 | UniqueKey const m_magic{ kDeepVersion }; | 41 | UniqueKey const magic{ kDeepVersion }; |
42 | // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory | 42 | // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory |
43 | class DeepFactory& m_factory; | 43 | class DeepFactory& factory; |
44 | // data is destroyed when refcount is 0 | 44 | // data is destroyed when refcount is 0 |
45 | std::atomic<int> m_refcount{ 0 }; | 45 | std::atomic<int> refcount{ 0 }; |
46 | 46 | ||
47 | DeepPrelude(DeepFactory& factory_) | 47 | DeepPrelude(DeepFactory& factory_) |
48 | : m_factory{ factory_ } | 48 | : factory{ factory_ } |
49 | { | 49 | { |
50 | } | 50 | } |
51 | }; | 51 | }; |