[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Capturing lua errors (was: Changelog for 5)
- From: "Nick Davies" <goodbytes@...>
- Date: Tue, 4 Mar 2003 22:27:25 -0500
> Error messages are returned on the stack. Here's the code I use with beta
5
> for my console, which compiles and executes a string. LoadS and getS are
> taken from code supplied with the lua distribution. You can replace with
> your own code if reading from a file. Assumes that you've already created
a
> lua_State with lua_open
> [snip]
I see. Well, that doesn't seem too bad! Thanks for the sample code, you've
made my life a lot easier.
Pretty soon, I should be able to pass on some of my acquired knowledge to
others... that will be the day. :)
~Nick