summaryrefslogtreecommitdiff
path: root/indra/llcommon/lua_function.cpp
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-03-01 08:55:32 -0500
committerGitHub <noreply@github.com>2024-03-01 08:55:32 -0500
commitde71c6378e60c0f0ea0c5537729f052da8513b19 (patch)
treeb92852f9c9b790fbae1b199c2dd835852ccb79cd /indra/llcommon/lua_function.cpp
parent777586a1865b496f8bfea9651afbd481ea23b4f7 (diff)
parent80c157661b694b0e38716b34dd8015cbf646186e (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.cpp3
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);