From: John L. <jla...@gm...> - 2006-04-13 00:01:39
|
On 4/12/06, Ray Gilbert <ray...@sc...> wrote: > > Has anyone got a sample of c code showing how to get lua function name Hi, I'm not sure I understand what you mean. A lua function that's on the stack or just see if the function exists at all? To see if it exists I think this should work lua_getglobal(L, "myfunction"); lua_isfunction(L, -1) then to run it do lua_pcall(L, 0, LUA_MULTRET, 0); else pop it off the stack lua_pop(L, 1) -John Labenski |