diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-11-20 18:03:33 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-11-20 18:03:33 +0100 |
commit | 0f6f3c207c46fa28059403e5f16af774d20c7ea2 (patch) | |
tree | 8031145bb2534c33ca0f2c65b9de85696c8a8ee0 /src/deep.cpp | |
parent | 304e4dfabe4555dff4aa72e75b677405fd30d1b3 (diff) | |
download | lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.gz lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.bz2 lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.zip |
More [[nodiscard]] boyscouting
Diffstat (limited to 'src/deep.cpp')
-rw-r--r-- | src/deep.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/deep.cpp b/src/deep.cpp index 9d5b839..6f4da9f 100644 --- a/src/deep.cpp +++ b/src/deep.cpp | |||
@@ -68,7 +68,8 @@ namespace { | |||
68 | * End of life for a proxy object; reduce the deep reference count and clean it up if reaches 0. | 68 | * End of life for a proxy object; reduce the deep reference count and clean it up if reaches 0. |
69 | * | 69 | * |
70 | */ | 70 | */ |
71 | [[nodiscard]] static int DeepGC(lua_State* const L_) | 71 | [[nodiscard]] |
72 | static int DeepGC(lua_State* const L_) | ||
72 | { | 73 | { |
73 | DeepPrelude* const* const _proxy{ luaG_tofulluserdata<DeepPrelude*>(L_, StackIndex{ 1 }) }; | 74 | DeepPrelude* const* const _proxy{ luaG_tofulluserdata<DeepPrelude*>(L_, StackIndex{ 1 }) }; |
74 | DeepPrelude* const _p{ *_proxy }; | 75 | DeepPrelude* const _p{ *_proxy }; |