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

Commit c3ba722

Browse files
committed
Add more lua push symbols
pushboolean, pushlud, pushthread, pushfstring
1 parent cc3c38b commit c3ba722

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lua_shared.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,15 @@ expose_symbol!( lua_touserdata, *mut CVoid, (state: LuaState, idx: CInt) );
104104

105105
// Push functions
106106
expose_symbol!( lua_pushstring, (), (state: LuaState, s: CharBuf) );
107+
expose_symbol!( lua_pushboolean, (), (state: LuaState, s: CInt) );
107108
expose_symbol!( lua_pushlstring, (), (state: LuaState, s: CharBuf, sz: SizeT) );
108109
expose_symbol!( lua_pushnil, (), (state: LuaState) );
109110
expose_symbol!( lua_pushnumber, (), (state: LuaState, num: LuaNumber) );
110111
expose_symbol!( lua_pushvalue, (), (state: LuaState, idx: CInt) );
111112
expose_symbol!( lua_pushcclosure, (), (state: LuaState, fnc: LuaCFunction, idx: CInt) );
113+
expose_symbol!( lua_pushlightuserdata, (), (state: LuaState, p: *mut CVoid) );
114+
expose_symbol!( lua_pushthread, (), (state: LuaState) );
115+
expose_symbol!( lua_pushfstring, CharBuf, (state: LuaState, fmt: CharBuf, ...) );
112116

113117
// Type Checks
114118
expose_symbol!( luaL_checkinteger, LuaInteger, (state: LuaState, narg: CInt) );

0 commit comments

Comments
 (0)