diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-22 14:47:00 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-22 14:47:00 -0200 |
commit | cb3f95d51696005e69d24b2bbc22f2fc3116b424 (patch) | |
tree | 27440471aa248ee487fa6d850cf57ea82d8721af /lua.h | |
parent | f84b575cfa52dc832751846aa0b4c8ff437d3ca3 (diff) | |
download | lua-cb3f95d51696005e69d24b2bbc22f2fc3116b424.tar.gz lua-cb3f95d51696005e69d24b2bbc22f2fc3116b424.tar.bz2 lua-cb3f95d51696005e69d24b2bbc22f2fc3116b424.zip |
'lua_cpcall' is deprecated
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.255 2009/12/18 15:32:36 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.256 2009/12/22 15:32:50 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -239,7 +239,6 @@ LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc, | |||
239 | int ctx, lua_CFunction k); | 239 | int ctx, lua_CFunction k); |
240 | #define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) | 240 | #define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) |
241 | 241 | ||
242 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); | ||
243 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, | 242 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, |
244 | const char *chunkname); | 243 | const char *chunkname); |
245 | 244 | ||
@@ -299,7 +298,7 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | |||
299 | #define lua_newtable(L) lua_createtable(L, 0, 0) | 298 | #define lua_newtable(L) lua_createtable(L, 0, 0) |
300 | 299 | ||
301 | #define lua_register(L,n,f) \ | 300 | #define lua_register(L,n,f) \ |
302 | (lua_pushcfunction(L, (f)), lua_setfield(L, LUA_GLOBALSINDEX, (n))) | 301 | (lua_pushcfunction(L, (f)), lua_setfield(L, LUA_ENVIRONINDEX, (n))) |
303 | 302 | ||
304 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) | 303 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) |
305 | 304 | ||