diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-06-22 16:50:40 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-06-22 16:50:40 +0800 |
| commit | cd2b60b101a398cb9356d746364e70eaed1860f1 (patch) | |
| tree | a1fe71b76faabc4883f16905a94164ce5c23e692 /src/lua-5.3/lapi.h | |
| parent | 88c1052e700f38cf3d8ad82d469da4c487760b7e (diff) | |
| download | yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.gz yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.bz2 yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.zip | |
add support for local variable declared with attribute 'close' and 'const' for Lua 5.4.
Diffstat (limited to 'src/lua-5.3/lapi.h')
| -rw-r--r-- | src/lua-5.3/lapi.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lua-5.3/lapi.h b/src/lua-5.3/lapi.h deleted file mode 100644 index 8e16ad5..0000000 --- a/src/lua-5.3/lapi.h +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | /* | ||
| 2 | ** $Id: lapi.h,v 2.9.1.1 2017/04/19 17:20:42 roberto Exp $ | ||
| 3 | ** Auxiliary functions from Lua API | ||
| 4 | ** See Copyright Notice in lua.h | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef lapi_h | ||
| 8 | #define lapi_h | ||
| 9 | |||
| 10 | |||
| 11 | #include "llimits.h" | ||
| 12 | #include "lstate.h" | ||
| 13 | |||
| 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ | ||
| 15 | "stack overflow");} | ||
| 16 | |||
| 17 | #define adjustresults(L,nres) \ | ||
| 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } | ||
| 19 | |||
| 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ | ||
| 21 | "not enough elements in the stack") | ||
| 22 | |||
| 23 | |||
| 24 | #endif | ||
