Get rid of several instances of LuaOldStack

This commit is contained in:
2023-04-11 16:51:40 -04:00
parent 92a5657dce
commit c6ab58f4fa
3 changed files with 9 additions and 29 deletions

View File

@@ -36,7 +36,7 @@ void LuaSnap::serialize(StreamBuffer *sb) {
// lua variables that we'll need.
LuaVar key, value;
LuaRet permstable, regcopy;
LuaOldStack LS(state_, permstable, regcopy, key, value);
LuaDefStack LS(state_, permstable, regcopy, key, value);
// Construct a copy of the registry table.
LS.set(regcopy, LuaNewTable);
@@ -93,7 +93,7 @@ void LuaSnap::deserialize(StreamBuffer *sb) {
// Set up a stack frame.
LuaArg permstable, regcopy;
LuaVar key, value;
LuaOldStack LS(state_, permstable, regcopy, key, value);
LuaDefStack LS(state_, permstable, regcopy, key, value);
assert(LS.istable(regcopy));