diff options
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'. |