File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -143,16 +143,18 @@ fn generate_glue() -> Result<()> {
143
143
( version. 0 * 100 ) + version. 1
144
144
) ?;
145
145
146
- let max_stack = if pointer_bit_width >= 32 {
147
- 1_000_000
148
- } else {
149
- 15_000
150
- } ;
146
+ #[ cfg( any( feature = "lua54" , feature = "lua53" , feature = "lua52" ) ) ]
151
147
writeln ! (
152
148
glue,
153
149
"pub const LUA_REGISTRYINDEX: c_int = -{} - 1000;" ,
154
- max_stack
150
+ if pointer_bit_width >= 32 {
151
+ 1_000_000
152
+ } else {
153
+ 15_000
154
+ }
155
155
) ?;
156
+ #[ cfg( any( feature = "lua51" , feature = "luajit" ) ) ]
157
+ writeln ! ( glue, "pub const LUA_REGISTRYINDEX: c_int = -10000;" ) ?;
156
158
157
159
// These two are only defined in lua 5.1
158
160
writeln ! ( glue, "pub const LUA_ENVIRONINDEX: c_int = -10001;" ) ?;
You can’t perform that action at this time.
0 commit comments