summaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index c613605d..c6b5b479 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.75 2009/11/17 11:56:03 roberto Exp roberto $ 2** $Id: llimits.h,v 1.76 2009/12/17 12:26:09 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -134,6 +134,38 @@ typedef lu_int32 Instruction;
134 134
135 135
136/* 136/*
137** these macros allow user-specific actions on threads when you defined
138** LUAI_EXTRASPACE and need to do something extra when a thread is
139** created/deleted/resumed/yielded.
140*/
141#if !defined(luai_userstateopen)
142#define luai_userstateopen(L) ((void)L)
143#endif
144
145#if !defined(luai_userstateclose)
146#define luai_userstateclose(L) ((void)L)
147#endif
148
149#if !defined(luai_userstatethread)
150#define luai_userstatethread(L,L1) ((void)L)
151#endif
152
153#if !defined(luai_userstatefree)
154#define luai_userstatefree(L) ((void)L)
155#endif
156
157#if !defined(luai_userstateresume)
158#define luai_userstateresume(L,n) ((void)L)
159#endif
160
161#if !defined(luai_userstateyield)
162#define luai_userstateyield(L,n) ((void)L)
163#endif
164
165
166
167
168/*
137** macro to control inclusion of some hard tests on stack reallocation 169** macro to control inclusion of some hard tests on stack reallocation
138*/ 170*/
139#if !defined(HARDSTACKTESTS) 171#if !defined(HARDSTACKTESTS)