Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 58f9daa

Browse files
committed
lua_atpanic & checkstack
1 parent 5df63f3 commit 58f9daa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lua_shared.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ expose_symbol!( luaL_testudata, (), (state: LuaState, arg: CInt, tname: CharBuf)
200200
expose_symbol!( luaL_execresult, CInt, (state: LuaState, stat: CInt) );
201201
expose_symbol!( luaL_fileresult, CInt, (state: LuaState, stat: CInt, fname: CharBuf) );
202202
expose_symbol!( luaL_findtable, CharBuf, (state: LuaState, idx: CInt, fname: CharBuf, szhint: CInt) );
203+
expose_symbol!( lua_checkstack, CInt, (state: LuaState, extra: CInt) );
204+
expose_symbol!( lua_atpanic, LuaCFunction, (state: LuaState, panicf: LuaCFunction) );
203205

204206
// luaL_Buffer
205207
expose_symbol!( luaL_buffinit, (), (state: LuaState, b: *mut LuaL_Buffer) );
@@ -208,7 +210,6 @@ expose_symbol!( luaL_prepbuffer, *mut i8, (b: *mut LuaL_Buffer) );
208210
// String methods
209211
expose_symbol!( luaL_gsub, CharBuf, (s: CharBuf, pattern: CharBuf, replace: CharBuf) );
210212

211-
212213
#[inline(always)]
213214
pub fn lua_pop(state: LuaState, ind: CInt) {
214215
lua_settop( state, -(ind)-1 );

0 commit comments

Comments
 (0)