[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua_strlen
- From: Reuben Thomas <rrt1001@...>
- Date: Sat, 18 Nov 2000 01:10:31 +0000 (GMT)
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