aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lvm.c b/lvm.c
index 7ee5f6bc..940a15e6 100644
--- a/lvm.c
+++ b/lvm.c
@@ -18,6 +18,7 @@
18 18
19#include "lua.h" 19#include "lua.h"
20 20
21#include "lapi.h"
21#include "ldebug.h" 22#include "ldebug.h"
22#include "ldo.h" 23#include "ldo.h"
23#include "lfunc.h" 24#include "lfunc.h"
@@ -1122,6 +1123,14 @@ void luaV_finishOp (lua_State *L) {
1122*/ 1123*/
1123#define halfProtect(exp) (savestate(L,ci), (exp)) 1124#define halfProtect(exp) (savestate(L,ci), (exp))
1124 1125
1126/*
1127** macro executed during Lua functions at points where the
1128** function can yield.
1129*/
1130#if !defined(luai_threadyield)
1131#define luai_threadyield(L) {lua_unlock(L); lua_lock(L);}
1132#endif
1133
1125/* 'c' is the limit of live values in the stack */ 1134/* 'c' is the limit of live values in the stack */
1126#define checkGC(L,c) \ 1135#define checkGC(L,c) \
1127 { luaC_condGC(L, (savepc(L), L->top.p = (c)), \ 1136 { luaC_condGC(L, (savepc(L), L->top.p = (c)), \