[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: want luaL_verror()
- From: Coda Highland <chighland@...>
- Date: Mon, 26 Nov 2012 11:29:13 -0800
On Mon, Nov 26, 2012 at 11:08 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> I think what was being said is that the above construction wouldn't
>> work as a /function/.
>
> Doesn't this work?
>
> LUA_API int luaL_verror (lua_State *L, const char *fmt, va_list argp) {
> return luaL_error(L, "%s", lua_pushvfstring(L, fmt, va_list));
> }
>
> -- Roberto
>
Hmm. Might. I'll admit to not being fully versed in the matter; I was
extrapolating from what I was reading. If that actually works (and
given that you're posting it, I'm pretty sure it does) then that
answers that. :P
/s/ Adam