diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lane.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lane.cpp b/src/lane.cpp index 63efdb6..7664dd6 100644 --- a/src/lane.cpp +++ b/src/lane.cpp | |||
@@ -88,12 +88,12 @@ static LUAG_FUNC(lane_threadname) | |||
88 | Lane* const _lane{ luaG_tolightuserdata<Lane>(L_, StackIndex{ lua_upvalueindex(1) }) }; | 88 | Lane* const _lane{ luaG_tolightuserdata<Lane>(L_, StackIndex{ lua_upvalueindex(1) }) }; |
89 | LUA_ASSERT(L_, L_ == _lane->L); // this function is exported in a lane's state, therefore it is callable only from inside the Lane's state | 89 | LUA_ASSERT(L_, L_ == _lane->L); // this function is exported in a lane's state, therefore it is callable only from inside the Lane's state |
90 | if (lua_gettop(L_) == 1) { | 90 | if (lua_gettop(L_) == 1) { |
91 | lua_settop(L_, 1); | 91 | lua_settop(L_, 1); |
92 | STACK_CHECK_START_REL(L_, 0); | 92 | STACK_CHECK_START_REL(L_, 0); |
93 | _lane->storeDebugName(luaG_tostring(L_, kIdxTop)); | 93 | _lane->storeDebugName(luaG_tostring(L_, kIdxTop)); |
94 | _lane->applyDebugName(); | 94 | _lane->applyDebugName(); |
95 | STACK_CHECK(L_, 0); | 95 | STACK_CHECK(L_, 0); |
96 | return 0; | 96 | return 0; |
97 | } else if (lua_gettop(L_) == 0) { | 97 | } else if (lua_gettop(L_) == 0) { |
98 | luaG_pushstring(L_, _lane->getDebugName()); | 98 | luaG_pushstring(L_, _lane->getDebugName()); |
99 | return 1; | 99 | return 1; |