diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.130 2010/01/11 17:15:30 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.131 2010/01/21 16:31:24 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 | */ |
@@ -220,11 +220,11 @@ | |||
220 | #define LUA_COMPAT_UNPACK | 220 | #define LUA_COMPAT_UNPACK |
221 | 221 | ||
222 | /* | 222 | /* |
223 | @@ LUA_COMPAT_CPCALL controls the presence of function 'lua_cpcall'. | 223 | @@ LUA_COMPAT_CPCALL controls the presence of macro 'lua_cpcall'. |
224 | ** You can replace it with the preregistered function 'cpcall'. | 224 | ** You can replace it with the preregistered function 'cpcall'. |
225 | */ | 225 | */ |
226 | #define LUA_COMPAT_CPCALL | 226 | #define lua_cpcall(L,f,u) \ |
227 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); | 227 | (lua_pushlightuserdata(L,(u)), luaL_cpcall(L,(f),1,0)) |
228 | 228 | ||
229 | /* | 229 | /* |
230 | @@ LUA_COMPAT_FENV controls the presence of functions 'setfenv/getfenv'. | 230 | @@ LUA_COMPAT_FENV controls the presence of functions 'setfenv/getfenv'. |
@@ -233,6 +233,7 @@ LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); | |||
233 | */ | 233 | */ |
234 | #define LUA_COMPAT_FENV | 234 | #define LUA_COMPAT_FENV |
235 | 235 | ||
236 | |||
236 | /* | 237 | /* |
237 | @@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library. | 238 | @@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library. |
238 | ** You can rewrite 'log10(x)' as 'log(x, 10)'. | 239 | ** You can rewrite 'log10(x)' as 'log(x, 10)'. |