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 /lstate.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 'lstate.c')
-rw-r--r-- | lstate.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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'. |