[Scummvm-git-logs] scummvm master -> 6c850c8f2edade35a89bea5388ec47382d5e8427

aquadran noreply at scummvm.org
Sun Jan 16 07:50:42 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:
6c850c8f2e GRIM: LUA: Print function name in list of arguments


Commit: 6c850c8f2edade35a89bea5388ec47382d5e8427
    https://github.com/scummvm/scummvm/commit/6c850c8f2edade35a89bea5388ec47382d5e8427
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2022-01-16T08:50:38+01:00

Commit Message:
GRIM: LUA: Print function name in list of arguments

Changed paths:
    engines/grim/lua/lstate.cpp


diff --git a/engines/grim/lua/lstate.cpp b/engines/grim/lua/lstate.cpp
index 8b55917bcd5..daaefb4fe14 100644
--- a/engines/grim/lua/lstate.cpp
+++ b/engines/grim/lua/lstate.cpp
@@ -169,7 +169,8 @@ void callHook(lua_Function func, const char *filename, int32 line) {
 				} else
 					fprintf(output, "<userdata %d>", lua_getuserdata(lua_getparam(i)));
 			} else if (lua_isfunction(lua_getparam(i))) {
-				fprintf(output, "<function>");
+				lua_getobjname(lua_getparam(i), &name);
+				fprintf(output, "<function %s>", name);
 			} else if (lua_isnumber(lua_getparam(i)))
 				fprintf(output, "%g", lua_getnumber(lua_getparam(i)));
 			else if (lua_isstring(lua_getparam(i)))




More information about the Scummvm-git-logs mailing list