[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Traceback from C.
- From: Karol Drożak <karoldro@...>
- Date: Thu, 19 Dec 2013 20:49:32 +0100
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.