diff options
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -37,6 +37,13 @@ | |||
37 | 37 | ||
38 | 38 | ||
39 | /* macro to check stack size, preserving 'p' */ | 39 | /* macro to check stack size, preserving 'p' */ |
40 | #define checkstackp(L,n,p) \ | ||
41 | luaD_checkstackaux(L, n, \ | ||
42 | ptrdiff_t t__ = savestack(L, p), /* save 'p' */ \ | ||
43 | p = restorestack(L, t__)) /* 'pos' part: restore 'p' */ | ||
44 | |||
45 | |||
46 | /* macro to check stack size and GC, preserving 'p' */ | ||
40 | #define checkstackGCp(L,n,p) \ | 47 | #define checkstackGCp(L,n,p) \ |
41 | luaD_checkstackaux(L, n, \ | 48 | luaD_checkstackaux(L, n, \ |
42 | ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \ | 49 | ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \ |