aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lapi.c b/lapi.c
index c9b30ace..8b229d7b 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.110 2010/01/11 17:38:30 roberto Exp roberto $ 2** $Id: lapi.c,v 2.111 2010/01/13 16:18:25 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1150,12 +1150,3 @@ LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
1150 luaC_objbarrier(L, f1, *up2); 1150 luaC_objbarrier(L, f1, *up2);
1151} 1151}
1152 1152
1153
1154#if defined(LUA_COMPAT_CPCALL)
1155LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
1156 lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_CPCALL);
1157 lua_pushlightuserdata(L, &func);
1158 lua_pushlightuserdata(L, ud);
1159 return lua_pcall(L, 2, 0, 0);
1160}
1161#endif