lua-users home
lua-l archive

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


> Can't the above be structured this way?
> 
> #if defined(LUA_USE_LINUX)||defined(LUA_USE_MACOSX)

Because originally Linux and Mac OS X supported different options.
Moreover, it makes the code easier to read and maintain
in case they diverge again.

Note also that the comments in the two blocks are different: Linux needs
(or needed -ldl) while Mac OS X does not, even if both support LUA_USE_DLOPEN.