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/nameof.cpp | |
parent | 304e4dfabe4555dff4aa72e75b677405fd30d1b3 (diff) | |
download | lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.gz lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.bz2 lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.zip |
More [[nodiscard]] boyscouting
Diffstat (limited to 'src/nameof.cpp')
-rw-r--r-- | src/nameof.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nameof.cpp b/src/nameof.cpp index 1bf55d1..2ae315a 100644 --- a/src/nameof.cpp +++ b/src/nameof.cpp | |||
@@ -32,7 +32,8 @@ THE SOFTWARE. | |||
32 | // ################################################################################################# | 32 | // ################################################################################################# |
33 | 33 | ||
34 | // Return some name helping to identify an object | 34 | // Return some name helping to identify an object |
35 | [[nodiscard]] static int DiscoverObjectNameRecur(lua_State* L_, int shortest_, int depth_) | 35 | [[nodiscard]] |
36 | static int DiscoverObjectNameRecur(lua_State* L_, int shortest_, int depth_) | ||
36 | { | 37 | { |
37 | static constexpr StackIndex kWhat{ 1 }; // the object to investigate // L_: o "r" {c} {fqn} ... {?} | 38 | static constexpr StackIndex kWhat{ 1 }; // the object to investigate // L_: o "r" {c} {fqn} ... {?} |
38 | static constexpr StackIndex kResult{ 2 }; // where the result string is stored | 39 | static constexpr StackIndex kResult{ 2 }; // where the result string is stored |