@@ -176,7 +176,7 @@ pub unsafe fn lua_rotate(L: *mut lua_State, mut idx: c_int, mut n: c_int) {
176
176
#[ inline( always) ]
177
177
pub unsafe fn lua_copy ( L : * mut lua_State , fromidx : c_int , toidx : c_int ) {
178
178
let abs_to = lua_absindex ( L , toidx) ;
179
- luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots" ) ) ;
179
+ luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots available " ) ) ;
180
180
lua_pushvalue ( L , fromidx) ;
181
181
lua_replace ( L , abs_to) ;
182
182
}
@@ -314,7 +314,7 @@ pub unsafe fn lua_rawseti(L: *mut lua_State, idx: c_int, n: lua_Integer) {
314
314
#[ inline( always) ]
315
315
pub unsafe fn lua_rawsetp ( L : * mut lua_State , idx : c_int , p : * const c_void ) {
316
316
let abs_i = lua_absindex ( L , idx) ;
317
- luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots" ) ) ;
317
+ luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots available " ) ) ;
318
318
lua_pushlightuserdata ( L , p as * mut c_void ) ;
319
319
lua_insert ( L , -2 ) ;
320
320
lua_rawset ( L , abs_i) ;
@@ -444,7 +444,7 @@ pub unsafe fn luaL_loadbufferx(
444
444
#[ inline( always) ]
445
445
pub unsafe fn luaL_len ( L : * mut lua_State , idx : c_int ) -> lua_Integer {
446
446
let mut isnum = 0 ;
447
- luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots" ) ) ;
447
+ luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots available " ) ) ;
448
448
lua_len ( L , idx) ;
449
449
let res = lua_tointegerx ( L , -1 , & mut isnum) ;
450
450
lua_pop ( L , 1 ) ;
@@ -526,14 +526,14 @@ pub unsafe fn luaL_tolstring(L: *mut lua_State, mut idx: c_int, len: *mut usize)
526
526
527
527
#[ inline( always) ]
528
528
pub unsafe fn luaL_setmetatable ( L : * mut lua_State , tname : * const c_char ) {
529
- luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots" ) ) ;
529
+ luaL_checkstack ( L , 1 , cstr ! ( "not enough stack slots available " ) ) ;
530
530
luaL_getmetatable ( L , tname) ;
531
531
lua_setmetatable ( L , -2 ) ;
532
532
}
533
533
534
534
pub unsafe fn luaL_getsubtable ( L : * mut lua_State , idx : c_int , fname : * const c_char ) -> c_int {
535
535
let abs_i = lua_absindex ( L , idx) ;
536
- luaL_checkstack ( L , 3 , cstr ! ( "not enough stack slots" ) ) ;
536
+ luaL_checkstack ( L , 3 , cstr ! ( "not enough stack slots available " ) ) ;
537
537
lua_pushstring_ ( L , fname) ;
538
538
if lua_gettable ( L , abs_i) == LUA_TTABLE {
539
539
return 1 ;
0 commit comments