aboutsummaryrefslogtreecommitdiff
path: root/lstate.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 /lstate.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 'lstate.c')
-rw-r--r--lstate.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lstate.c b/lstate.c
index c3422589..8df86bf5 100644
--- a/lstate.c
+++ b/lstate.c
@@ -52,6 +52,27 @@ typedef struct LG {
52 52
53 53
54/* 54/*
55** these macros allow user-specific actions when a thread is
56** created/deleted
57*/
58#if !defined(luai_userstateopen)
59#define luai_userstateopen(L) ((void)L)
60#endif
61
62#if !defined(luai_userstateclose)
63#define luai_userstateclose(L) ((void)L)
64#endif
65
66#if !defined(luai_userstatethread)
67#define luai_userstatethread(L,L1) ((void)L)
68#endif
69
70#if !defined(luai_userstatefree)
71#define luai_userstatefree(L,L1) ((void)L)
72#endif
73
74
75/*
55** set GCdebt to a new value keeping the real number of allocated 76** set GCdebt to a new value keeping the real number of allocated
56** objects (totalobjs - GCdebt) invariant and avoiding overflows in 77** objects (totalobjs - GCdebt) invariant and avoiding overflows in
57** 'totalobjs'. 78** 'totalobjs'.