lua-users home
lua-l archive

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


> That is correct, but because luaL_error() does not actually return, the
> calling function of luaL_verror() will never be returned to, and thus the
> va_end() that is there will never be called..

Who calls va_start and its corresponding va_end is lua_pushvfstring
(actually luaO_pushfstring, an internal function), which usually
returns. The error is raised after the call to va_end.  Nobody else
needs to call either va_start or va_end.

-- Roberto