[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: isLmark() segmentation violation
- From: Reuben Thomas <rrt@...>
- Date: Tue, 4 Dec 2001 11:09:22 +0000 (GMT)
> > how can i typecheck the result then - i thought that
> > luaL_check_int() would be sufficient to verify that
> > the return value (at stack index 1) was an integer ?
>
> Use lua_isnumber(L, -1).
By the way, the stack index of the return value may or may not be 1, but
it is definitely -1 (-1 is top os stack).