summaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 9edc043f..72f38c93 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.182 2002/04/02 20:43:18 roberto Exp roberto $ 2** $Id: lapi.c,v 1.183 2002/04/05 18:54:31 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*/
@@ -98,6 +98,15 @@ LUA_API int lua_checkstack (lua_State *L, int size) {
98} 98}
99 99
100 100
101LUA_API lua_CFunction lua_setpanicf (lua_State *L, lua_CFunction panicf) {
102 lua_CFunction old;
103 lua_lock(L);
104 old = G(L)->panic;
105 G(L)->panic = panicf;
106 lua_unlock(L);
107 return old;
108}
109
101 110
102/* 111/*
103** basic stack manipulation 112** basic stack manipulation