aboutsummaryrefslogtreecommitdiff
path: root/src/deep.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-03 16:53:50 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-03 16:53:50 +0200
commit09635e063c007c4bda684ee21abb55c7470ee0e0 (patch)
tree73cb52d8140c19dc11e6ae427eea260bb21c55ff /src/deep.h
parent44c617f7b756052c7cd059c96f89b85f0f5ec96c (diff)
downloadlanes-09635e063c007c4bda684ee21abb55c7470ee0e0.tar.gz
lanes-09635e063c007c4bda684ee21abb55c7470ee0e0.tar.bz2
lanes-09635e063c007c4bda684ee21abb55c7470ee0e0.zip
Code boyscouting
Diffstat (limited to 'src/deep.h')
-rw-r--r--src/deep.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/deep.h b/src/deep.h
index e15f07b..b39a87f 100644
--- a/src/deep.h
+++ b/src/deep.h
@@ -22,6 +22,7 @@ extern "C"
22 22
23// forwards 23// forwards
24enum class LookupMode; 24enum class LookupMode;
25class DeepFactory;
25class Universe; 26class Universe;
26 27
27// ################################################################################################# 28// #################################################################################################
@@ -35,7 +36,7 @@ struct DeepPrelude
35{ 36{
36 UniqueKey const magic{ kDeepVersion }; 37 UniqueKey const magic{ kDeepVersion };
37 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory 38 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory
38 class DeepFactory& factory; 39 DeepFactory& factory;
39 // data is destroyed when refcount is 0 40 // data is destroyed when refcount is 0
40 std::atomic<int> refcount{ 0 }; 41 std::atomic<int> refcount{ 0 };
41 42