lua-users home
lua-l archive

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


> Are there any plans to add these
> functions to the API, so that we can be nice and comfy knowing that
> for every lua_to* there exists a corresponding lua_is*, luaL_check*
> and luaL_opt*?

No. As the manual says, "the auxiliary library provides higher-level
functions for some common tasks."  It does not aim completeness.


> These can be resolved by defining them myself as preprocessor macros
> (#define lua_isinteger lua_isnumber), but that seems like a hack
> that's likely to interfere with something (if other libraries do
> similar or Lua ever adds these).

I do not see why they seem like a hack. It looks like programming to me :)
Just try to use prefixes other than "lua_" and "luaL_".

-- Roberto