aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-10-18 15:07:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-10-18 15:07:31 -0300
commitb32e9a46d24f949803bcfd11d637436fb4ccb076 (patch)
tree7d12be4433dd69727002964b42e3cdd5114b5e08 /luaconf.h
parente5cfa7a3672eecfd81fb290faac9ac60c76e7231 (diff)
downloadlua-b32e9a46d24f949803bcfd11d637436fb4ccb076.tar.gz
lua-b32e9a46d24f949803bcfd11d637436fb4ccb076.tar.bz2
lua-b32e9a46d24f949803bcfd11d637436fb4ccb076.zip
better configuration for loadlib
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/luaconf.h b/luaconf.h
index dd8fe103..2b3fc736 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.13 2004/09/29 21:03:42 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.14 2004/10/06 18:34:47 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -123,7 +123,7 @@
123#ifdef LUA_CORE 123#ifdef LUA_CORE
124 124
125/* LUA-C API assertions */ 125/* LUA-C API assertions */
126#define api_check(L, o) lua_assert(o) 126#define api_check(L,o) lua_assert(o)
127 127
128 128
129/* an unsigned integer with at least 32 bits */ 129/* an unsigned integer with at least 32 bits */
@@ -179,7 +179,7 @@
179#endif 179#endif
180 180
181/* function to convert a lua_Number to lua_Integer (with any rounding method) */ 181/* function to convert a lua_Number to lua_Integer (with any rounding method) */
182#define lua_number2integer(i,n) lua_number2int(i,n) 182#define lua_number2integer(i,n) lua_number2int((i), (n))
183 183
184 184
185/* function to convert a lua_Number to a string */ 185/* function to convert a lua_Number to a string */
@@ -251,7 +251,7 @@
251 251
252 252
253/* allows user-specific initialization on new threads */ 253/* allows user-specific initialization on new threads */
254#define lua_userstateopen(l) /* empty */ 254#define lua_userstateopen(L) /* empty */
255 255
256 256
257#endif 257#endif
@@ -291,7 +291,7 @@
291 291
292/* 292/*
293** by default, gcc does not get `tmpname' 293** by default, gcc does not get `tmpname'
294*/ 294*/
295#ifdef __GNUC__ 295#ifdef __GNUC__
296#define USE_TMPNAME 0 296#define USE_TMPNAME 0
297#else 297#else
@@ -299,6 +299,17 @@
299#endif 299#endif
300 300
301 301
302/*
303** Configuration for loadlib
304*/
305#if defined(__linux) || defined(sun) || defined(sgi) || defined(BSD)
306#define USE_DLOPEN
307#elif defined(_WIN32)
308#define USE_DLL
309#elif defined(__APPLE__) && defined(__MACH__)
310#define USE_DYLD
311#endif
312
302 313
303#endif 314#endif
304 315