lua-users home
lua-l archive

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


> The question is how to discard buffer in this case? Calling
> luaL_pushresult() and popping it back seems to be unnecessary
> expensive

you said it's going to fail in the rare case.  by calling
luaL_pushresult() and popping it, you pay the same price
as you would in the common (no failure) case.

so i wouldn't be too concerned about it.