lua-users home
lua-l archive

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


On Thu May 05/29/14 at 10:44, Thiago L. wrote:
> <snip> 
> would print:
> 
> myChunk:11: my error
> <stack traceback stuff>

I'm not 100% sure that I follow what you want. However, it should be
possible to write a module in C that allows you any format you like (within
reason) of the information in lua_Debug.

As a trivial example, I wanted a slightly modified version of Lua's native
`assert()` function, so I wrote this:
https://bitbucket.org/telemachus/demand.

Hope this helps, P
-- 
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
    Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System