aboutsummaryrefslogtreecommitdiff
path: root/src/deep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/deep.cpp')
-rw-r--r--src/deep.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/deep.cpp b/src/deep.cpp
index 76397ae..97442cf 100644
--- a/src/deep.cpp
+++ b/src/deep.cpp
@@ -240,7 +240,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_,
240 raise_luaL_error(errL_, "lanes receiving deep userdata should register the 'package' library"); 240 raise_luaL_error(errL_, "lanes receiving deep userdata should register the 'package' library");
241 } 241 }
242 242
243 std::ignore = lua_pushstringview(L_, _modname); // L_: DPC proxy metatable require() "module" 243 std::ignore = luaG_pushstringview(L_, _modname); // L_: DPC proxy metatable require() "module"
244 if (luaG_getfield(L_, LUA_REGISTRYINDEX, LUA_LOADED_TABLE) != LuaType::TABLE) { // L_: DPC proxy metatable require() "module" _R._LOADED 244 if (luaG_getfield(L_, LUA_REGISTRYINDEX, LUA_LOADED_TABLE) != LuaType::TABLE) { // L_: DPC proxy metatable require() "module" _R._LOADED
245 // no L.registry._LOADED; can this ever happen? 245 // no L.registry._LOADED; can this ever happen?
246 lua_pop(L_, 6); // L_: 246 lua_pop(L_, 6); // L_:
@@ -259,7 +259,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_,
259 LuaError const _require_result{ lua_pcall(L_, 1, 0, 0) }; // L_: DPC proxy metatable error? 259 LuaError const _require_result{ lua_pcall(L_, 1, 0, 0) }; // L_: DPC proxy metatable error?
260 if (_require_result != LuaError::OK) { 260 if (_require_result != LuaError::OK) {
261 // failed, raise the error in the proper state 261 // failed, raise the error in the proper state
262 std::ignore = lua_pushstringview(errL_, lua_tostringview(L_, -1)); 262 std::ignore = luaG_pushstringview(errL_, luaG_tostringview(L_, -1));
263 raise_lua_error(errL_); 263 raise_lua_error(errL_);
264 } 264 }
265 } 265 }
@@ -269,7 +269,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_,
269 } 269 }
270 } 270 }
271 STACK_CHECK(L_, 3); // L_: DPC proxy metatable 271 STACK_CHECK(L_, 3); // L_: DPC proxy metatable
272 LUA_ASSERT(L_, lua_type_as_enum(L_, -2) == LuaType::USERDATA); 272 LUA_ASSERT(L_, luaG_type(L_, -2) == LuaType::USERDATA);
273 LUA_ASSERT(L_, lua_istable(L_, -1)); 273 LUA_ASSERT(L_, lua_istable(L_, -1));
274 lua_setmetatable(L_, -2); // L_: DPC proxy 274 lua_setmetatable(L_, -2); // L_: DPC proxy
275 275
@@ -278,7 +278,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_,
278 lua_pushvalue(L_, -2); // L_: DPC proxy deep proxy 278 lua_pushvalue(L_, -2); // L_: DPC proxy deep proxy
279 lua_rawset(L_, -4); // L_: DPC proxy 279 lua_rawset(L_, -4); // L_: DPC proxy
280 lua_remove(L_, -2); // L_: proxy 280 lua_remove(L_, -2); // L_: proxy
281 LUA_ASSERT(L_, lua_type_as_enum(L_, -1) == LuaType::USERDATA); 281 LUA_ASSERT(L_, luaG_type(L_, -1) == LuaType::USERDATA);
282 STACK_CHECK(L_, 1); 282 STACK_CHECK(L_, 1);
283} 283}
284 284