lua-users home
lua-l archive

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


Since API functions are allowed to be macros, why not take advantage of this
and 

#define lua_strlen(L, s) lua__strlen(s)

(and similarly for other functions that don't use the state)? I agree that
it's sensible to make pretty much all functions in the API apart from
lua_open take a state, but you don't have to force it to be passed where
it's not used.

-- 
http://sc3d.org/rrt/ | plagiarism, n.  the mind burgles