lua-users home
lua-l archive

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


Adam D. Moss wrote:
Mark Hamburg wrote:

Create a new Lua state. Push some values to it. Call a utility function that happens to type check the values on the stack. luaL_argerror which is what luaL_typerror calls which is what luaL_checktype calls is unhappy when there
is no stack frame.

I ran into this recently myself!  I thought it was just my
fault for using luaL_checktype calls in a function that wasn't
called by Lua code, and stopped doing that...

n.b. I'm not sure what I was expecting the checktype calls to
achieve when there was no error-handling function to throw the
resulting lua error to.  But I wasn't expecting a crash, I
suppose.

--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3