lua-users home
lua-l archive

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


Hello All,



#if defined(LUA_USE_LINUX)
#define LUA_USE_POSIX
#define LUA_USE_DLOPEN          /* needs an extra library: -ldl */
#define LUA_USE_READLINE        /* needs some extra libraries */
#define LUA_USE_STRTODHEX       /* assume 'strtod' handles hexa formats */
#define LUA_USE_AFORMAT         /* assume 'printf' handles 'aA' specifiers */
#define LUA_USE_LONGLONG        /* assume support for long long */
#endif

#if defined(LUA_USE_MACOSX)
#define LUA_USE_POSIX
#define LUA_USE_DLOPEN          /* does not need -ldl */
#define LUA_USE_READLINE        /* needs an extra library: -lreadline */
#define LUA_USE_STRTODHEX       /* assume 'strtod' handles hexa formats */
#define LUA_USE_AFORMAT         /* assume 'printf' handles 'aA' specifiers */
#define LUA_USE_LONGLONG        /* assume support for long long */
#endif

Can't the above be structured this way?
#if defined(LUA_USE_LINUX)||defined(LUA_USE_MACOSX)
#define LUA_USE_POSIX #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ #define LUA_USE_READLINE /* needs some extra libraries */ #define LUA_USE_STRTODHEX /* assume 'strtod' handles hexa formats */ #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ #define LUA_USE_LONGLONG /* assume support for long long */ #endif


--
Satajanus  Nig. Ltd