aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-20 13:43:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-20 13:43:33 -0300
commit55ac40f859ad8e28fe71a8801d49f4a4140e8aa3 (patch)
tree1a1f02de45d28c7eb8976087ade773d7937bed14 /lvm.c
parent97ef8e7bd40340d47a9789beb06f0128d7438d0a (diff)
downloadlua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.gz
lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.bz2
lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.zip
Cleaning of llimits.h
Several definitions that don't need to be "global" (that is, that concerns only specific parts of the code) moved out of llimits.h, to more appropriate places.
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)), \