@@ -65,14 +65,15 @@ pub const LUA_TBOOLEAN: c_int = 1;
6565
6666pub const LUA_TLIGHTUSERDATA : c_int = 2 ;
6767pub const LUA_TNUMBER : c_int = 3 ;
68- pub const LUA_TVECTOR : c_int = 4 ;
68+ pub const LUA_TINTEGER : c_int = 4 ;
69+ pub const LUA_TVECTOR : c_int = 5 ;
6970
70- pub const LUA_TSTRING : c_int = 5 ;
71- pub const LUA_TTABLE : c_int = 6 ;
72- pub const LUA_TFUNCTION : c_int = 7 ;
73- pub const LUA_TUSERDATA : c_int = 8 ;
74- pub const LUA_TTHREAD : c_int = 9 ;
75- pub const LUA_TBUFFER : c_int = 10 ;
71+ pub const LUA_TSTRING : c_int = 6 ;
72+ pub const LUA_TTABLE : c_int = 7 ;
73+ pub const LUA_TFUNCTION : c_int = 8 ;
74+ pub const LUA_TUSERDATA : c_int = 9 ;
75+ pub const LUA_TTHREAD : c_int = 10 ;
76+ pub const LUA_TBUFFER : c_int = 11 ;
7677
7778/// Guaranteed number of Lua stack slots available to a C function.
7879pub const LUA_MINSTACK : c_int = 20 ;
@@ -153,6 +154,7 @@ unsafe extern "C-unwind" {
153154 pub fn lua_tounsignedx ( L : * mut lua_State , idx : c_int , isnum : * mut c_int ) -> lua_Unsigned ;
154155 pub fn lua_tovector ( L : * mut lua_State , idx : c_int ) -> * const c_float ;
155156 pub fn lua_toboolean ( L : * mut lua_State , idx : c_int ) -> c_int ;
157+ pub fn lua_tointeger64 ( L : * mut lua_State , idx : c_int , isinteger : * mut c_int ) -> i64 ;
156158 pub fn lua_tolstring ( L : * mut lua_State , idx : c_int , len : * mut usize ) -> * const c_char ;
157159 pub fn lua_tostringatom ( L : * mut lua_State , idx : c_int , atom : * mut c_int ) -> * const c_char ;
158160 pub fn lua_tolstringatom (
@@ -182,6 +184,7 @@ unsafe extern "C-unwind" {
182184 pub fn lua_pushnumber ( L : * mut lua_State , n : lua_Number ) ;
183185 #[ link_name = "lua_pushinteger" ]
184186 pub fn lua_pushinteger_ ( L : * mut lua_State , n : c_int ) ;
187+ pub fn lua_pushinteger64 ( L : * mut lua_State , n : i64 ) ;
185188 pub fn lua_pushunsigned ( L : * mut lua_State , n : lua_Unsigned ) ;
186189 #[ cfg( not( feature = "luau-vector4" ) ) ]
187190 pub fn lua_pushvector ( L : * mut lua_State , x : c_float , y : c_float , z : c_float ) ;
@@ -412,6 +415,11 @@ pub unsafe fn lua_isboolean(L: *mut lua_State, n: c_int) -> c_int {
412415 ( lua_type ( L , n) == LUA_TBOOLEAN ) as c_int
413416}
414417
418+ #[ inline( always) ]
419+ pub unsafe fn lua_isinteger64 ( L : * mut lua_State , n : c_int ) -> c_int {
420+ ( lua_type ( L , n) == LUA_TINTEGER ) as c_int
421+ }
422+
415423#[ inline( always) ]
416424pub unsafe fn lua_isvector ( L : * mut lua_State , n : c_int ) -> c_int {
417425 ( lua_type ( L , n) == LUA_TVECTOR ) as c_int
0 commit comments