aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ldo.h b/ldo.h
index 4cbdb847..4661aa00 100644
--- a/ldo.h
+++ b/ldo.h
@@ -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' */ \