[Scummvm-git-logs] scummvm master -> 570d71ed5aaadd7a76bc1e02b6f5c08728d127d9
aquadran
noreply at scummvm.org
Sun Jan 16 07:46:25 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
570d71ed5a GRIM: LUA: Do not touch stack. this is only helper for traces hook
Commit: 570d71ed5aaadd7a76bc1e02b6f5c08728d127d9
https://github.com/scummvm/scummvm/commit/570d71ed5aaadd7a76bc1e02b6f5c08728d127d9
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-01-16T08:46:21+01:00
Commit Message:
GRIM: LUA: Do not touch stack. this is only helper for traces hook
Changed paths:
engines/grim/lua/ldo.cpp
diff --git a/engines/grim/lua/ldo.cpp b/engines/grim/lua/ldo.cpp
index ddaa459edad..5ef1483819d 100644
--- a/engines/grim/lua/ldo.cpp
+++ b/engines/grim/lua/ldo.cpp
@@ -108,9 +108,6 @@ void luaD_lineHook(int32 line) {
}
void luaD_callHook(StkId base, TProtoFunc *tf, int32 isreturn) {
- struct C_Lua_Stack oldCLS = lua_state->Cstack;
- StkId old_top = lua_state->Cstack.lua2C = lua_state->Cstack.base = lua_state->stack.top - lua_state->stack.stack;
- lua_state->Cstack.num = 0;
if (isreturn)
(*lua_callhook)(LUA_NOOBJECT, "(return)", 0);
else {
@@ -120,8 +117,6 @@ void luaD_callHook(StkId base, TProtoFunc *tf, int32 isreturn) {
else
(*lua_callhook)(Ref(f), "(C)", -1);
}
- lua_state->stack.top = lua_state->stack.stack + old_top;
- lua_state->Cstack = oldCLS;
}
/*
More information about the Scummvm-git-logs
mailing list