lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I copied and modified the function db_errorfb, then I used it in this way:

lua_pushcfunction (L, program01_db_errorfb);
lua_getglobal (L, "program01");
int rv = lua_pcall (L, 0, 0, -2);
if (rv) {/ * ... * /; Lua_pop (L, 1); / * remove error from the stack * /}
lua_pop (L, 1); / * remove debug.traceback from the stack * /


This works perfectly for me.
Thanks for the answers, they were very helpful.


--
Karol Drożak