diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-19 18:04:17 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-19 18:04:17 -0300 |
commit | caf74dd7314761f8e1bd512dde19db7705eccd0a (patch) | |
tree | de1b351b3d91e3f7a1e6c5386e51a2ce62084831 /lauxlib.c | |
parent | 62840c5fadafe0abe8b524601f0367db297c0653 (diff) | |
download | lua-caf74dd7314761f8e1bd512dde19db7705eccd0a.tar.gz lua-caf74dd7314761f8e1bd512dde19db7705eccd0a.tar.bz2 lua-caf74dd7314761f8e1bd512dde19db7705eccd0a.zip |
'cpcall' renamed to 'ccall' as it does not do a protected call
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.202 2010/03/12 18:59:32 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.203 2010/03/17 21:37:37 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -789,7 +789,7 @@ LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver) { | |||
789 | LUALIB_API int luaL_cpcall (lua_State *L, lua_CFunction f, int nargs, | 789 | LUALIB_API int luaL_cpcall (lua_State *L, lua_CFunction f, int nargs, |
790 | int nresults) { | 790 | int nresults) { |
791 | nargs++; /* to include function itself */ | 791 | nargs++; /* to include function itself */ |
792 | lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_CPCALL); | 792 | lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_CCALL); |
793 | lua_insert(L, -nargs); | 793 | lua_insert(L, -nargs); |
794 | lua_pushlightuserdata(L, &f); | 794 | lua_pushlightuserdata(L, &f); |
795 | lua_insert(L, -nargs); | 795 | lua_insert(L, -nargs); |