lua-users home
lua-l archive

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


> My program is free software and I only provide the sources. (Other
> people handle making binary packages for random OSes). It should be
> as easy as possible for the users to install it from the sources as
> well and _patching Lua_ certainly is not something users should have
> to do.

I don't think LHF was suggesting you patch Lua. An application is responsible
for ensuring that it fulfils the preconditions of library functions it calls.
> 
> So now I'll just have to write inefficient lua_*_check { luaL_checktype;
> lua_* } wrappers to random functions

Check out lauxlib.h (and the documentation on the Wiki); lots of useful
functions like this.