Whoops, I was wrong about the stack index; lua_resume takes nargs, not a stack index. However, the documentation for lua_resume [1] states that it must take a thread; it doesn't say it can take a function. [1] http://www.lua.org/manual/5.1/manual.html#lua_resume -- Sincerely, Alex Parrill