From 4f5f2fe36732d7809a4c0e0856cb9aca02e9ce24 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 21 Jan 2010 14:49:21 -0200 Subject: new function 'luaL_cpcall' --- lapi.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index c9b30ace..8b229d7b 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.110 2010/01/11 17:38:30 roberto Exp roberto $ +** $Id: lapi.c,v 2.111 2010/01/13 16:18:25 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -1150,12 +1150,3 @@ LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1, luaC_objbarrier(L, f1, *up2); } - -#if defined(LUA_COMPAT_CPCALL) -LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) { - lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_CPCALL); - lua_pushlightuserdata(L, &func); - lua_pushlightuserdata(L, ud); - return lua_pcall(L, 2, 0, 0); -} -#endif -- cgit v1.2.3-55-g6feb