Re: error exceptions
"Nigel Atkinson" <[email protected]> Wed, 10 Aug 2011 08:22:24 +1000
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, August 10, 2011 12:43 am, Willi Schinmeyer wrote: > Am Dienstag, den 09.08.2011, 07:17 -0700 schrieb Josh Stratton: >> so I'm assuming there is some error in there >> I thought should raise an exception. > > Nope, errors don't usually raise exceptions, they just change the return > value. Read the manual regarding luaL_dostring(), I don't know how to > check its success off the top of my head. luaL_dostring reurns 1 on error, and in that case you should find a string describing the problem at the top of the Lua stack. Nigel ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user