lua-users home
lua-l archive

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

On Wed, Nov 19, 2003 at 11:48:58AM +0800, Brett Bibby wrote:
> We're trying to implement a robust lua debugging interface and while the
> manual briefly explains the different mechanisms I couldn't find any
> exmaples of how to use it.  Are there any complete examples that show
> how to write a pcall error function that shows how to extract the error
> info in C?  Also, does anybody have any reocmmendations on how to set up
> the hooks and callbacks?

the default lua interpreter (in src/lua/lua.c) and the debug library
(in src/lib/ldblib.c) are a useful source of examples on how to use
lua_pcall() and the debug interface from C.