Re: Trying to skim Source 5.2 luaconf.h
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Trying to skim Source 5.2 luaconf.h
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2013年1月23日 15:03:27 -0200
> 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.