aboutsummaryrefslogtreecommitdiff
path: root/src/lane.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lane.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lane.cpp b/src/lane.cpp
index a998e9c..e801cba 100644
--- a/src/lane.cpp
+++ b/src/lane.cpp
@@ -228,7 +228,7 @@ static int thread_index_number(lua_State* L_)
228 // this is an internal error, we probably never get here 228 // this is an internal error, we probably never get here
229 lua_settop(L_, 0); // L_: 229 lua_settop(L_, 0); // L_:
230 luaG_pushstring(L_, "Unexpected status: "); // L_: "Unexpected status: " 230 luaG_pushstring(L_, "Unexpected status: "); // L_: "Unexpected status: "
231 std::ignore = _lane->pushThreadStatus(L_); // L_: "Unexpected status: " "<status>" 231 _lane->pushStatusString(L_); // L_: "Unexpected status: " "<status>"
232 lua_concat(L_, 2); // L_: "Unexpected status: <status>" 232 lua_concat(L_, 2); // L_: "Unexpected status: <status>"
233 raise_lua_error(L_); 233 raise_lua_error(L_);
234 234
@@ -315,7 +315,7 @@ static int thread_index_string(lua_State* L_)
315 std::string_view const _keystr{ luaG_tostring(L_, kKey) }; 315 std::string_view const _keystr{ luaG_tostring(L_, kKey) };
316 lua_settop(L_, 2); // keep only our original arguments on the stack 316 lua_settop(L_, 2); // keep only our original arguments on the stack
317 if (_keystr == "status") { 317 if (_keystr == "status") {
318 std::ignore = _lane->pushThreadStatus(L_); // L_: lane "key" "<status>" 318 _lane->pushStatusString(L_); // L_: lane "key" "<status>"
319 return 1; 319 return 1;
320 } 320 }
321 if (_keystr == "error_trace_level") { 321 if (_keystr == "error_trace_level") {
@@ -1008,12 +1008,12 @@ void Lane::PushMetatable(lua_State* L_)
1008 1008
1009// ################################################################################################# 1009// #################################################################################################
1010 1010
1011[[nodiscard]] std::string_view Lane::pushThreadStatus(lua_State* L_) const 1011void Lane::pushStatusString(lua_State* L_) const
1012{ 1012{
1013 std::string_view const _str{ threadStatusString() }; 1013 std::string_view const _str{ threadStatusString() };
1014 LUA_ASSERT(L_, !_str.empty()); 1014 LUA_ASSERT(L_, !_str.empty());
1015 1015
1016 return luaG_pushstring(L_, _str); 1016 luaG_pushstring(L_, _str);
1017} 1017}
1018 1018
1019// ################################################################################################# 1019// #################################################################################################