diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:50:20 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:50:20 -0200 |
commit | 46f1429936ff7cde274f9896d022ab494567ee7a (patch) | |
tree | 9fdba8a4b51ca29e1cb91088b4db8e461a9c6426 /llimits.h | |
parent | e0f9d1c8f5cca74d1ad4017a1f14ff1acac2075a (diff) | |
download | lua-46f1429936ff7cde274f9896d022ab494567ee7a.tar.gz lua-46f1429936ff7cde274f9896d022ab494567ee7a.tar.bz2 lua-46f1429936ff7cde274f9896d022ab494567ee7a.zip |
more options moved from luaconf.h into internal files
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 34 |
1 files changed, 33 insertions, 1 deletions
@@ -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) |