debug.getinfo(1) does not seem to return the current function name when called from an engine callback , there’s plenty of other stuff, see below
{
linedefined = 3,
currentline = 6,
func = function: 0x174fb6e0,
isvararg = false,
namewhat = ,
lastlinedefined = 12,
source = =/main/main.script,
nups = 1,
what = Lua,
nparams = 1,
short_src = /main/main.script,
}
Calling getinfo from a regular function down the stack return the name as expected
{
linedefined = 15,
currentline = 17,
func = function: 0x0a1c2830,
isvararg = false,
namewhat = global,
lastlinedefined = 19,
source = =/main/main.script,
nups = 0,
what = Lua,
nparams = 0,
name = someFunction,
short_src = /main/main.script,
}