I created a table and assigned a method with lua_pushcfunction called mytable:myfunction() . In another (reverse) context, it is imperative that myfunction be overridden inside a Lua script. For some reason, if I call myfunction from host C, I need to know if myfunction is still a c-function or replaced with a script.
Is there a way to check (from C) if the C method is still connected or replaced with some Lua code?
source share