diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-20 13:43:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-20 13:43:33 -0300 |
commit | 55ac40f859ad8e28fe71a8801d49f4a4140e8aa3 (patch) | |
tree | 1a1f02de45d28c7eb8976087ade773d7937bed14 /lvm.c | |
parent | 97ef8e7bd40340d47a9789beb06f0128d7438d0a (diff) | |
download | lua-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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)), \ |