diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-03-01 08:55:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 08:55:32 -0500 |
commit | de71c6378e60c0f0ea0c5537729f052da8513b19 (patch) | |
tree | b92852f9c9b790fbae1b199c2dd835852ccb79cd /indra/llcommon/lua_function.cpp | |
parent | 777586a1865b496f8bfea9651afbd481ea23b4f7 (diff) | |
parent | 80c157661b694b0e38716b34dd8015cbf646186e (diff) |
Merge pull request #905 from secondlife/require-tweaks
Refactor `require()` to make it easier to reason about Lua stack usage.
Diffstat (limited to 'indra/llcommon/lua_function.cpp')
-rw-r--r-- | indra/llcommon/lua_function.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/lua_function.cpp b/indra/llcommon/lua_function.cpp index a5f1f582d9..78abb8ba7e 100644 --- a/indra/llcommon/lua_function.cpp +++ b/indra/llcommon/lua_function.cpp @@ -789,7 +789,8 @@ std::ostream& operator<<(std::ostream& out, const lua_what& self) *****************************************************************************/ std::ostream& operator<<(std::ostream& out, const lua_stack& self) { - const char* sep = "stack: ["; + out << "stack: ["; + const char* sep = ""; for (int index = 1; index <= lua_gettop(self.L); ++index) { out << sep << lua_what(self.L, index); |