lua-users home
lua-l archive

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


--- In lua-l@yahoogroups.com, RLake@o... wrote:
> To use it, you have to push it onto the stack and then give it's 
stack
> index to lua_pcall:
> 
> lua_pushcclosure(L, errorfb, 0);
> luaL_loadbuffer(state, buffer, size, filename);
> lua_pcall(state, 0, LUA_MULTRET, -2);
> 

  Having trouble making the trace stuff work, but at least my error 
reporting was fixed by checking for errors from loadbuffer... duh.  
I'll get stack traces in there once i hit a bug in which i need that 
info.  Thanks for the tip!

  Tom