[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: want luaL_verror()
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 26 Nov 2012 10:01:56 -0200
> > Isn't this enough?
> >
> > luaL_error(L, "%s", lua_pushfstring(L, va_list))
> >
>
> Not exactly since luaL_error prepends the where string as well (at least in
> 5.1). So a va_list version might take a level as well.
I am afraid do not follow you here. The line above calls luaL_error,
so it will prepend exactly the same stuff as a va_list version of
luaL_error. The original luaL_error does not "take a level" (if I
understood what you meant); if it did, the above line would take
one as well.
-- Roberto