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

Commit cc3c38b

Browse files
committed
Fix all macros when not importing lua::shared::*
1 parent 5ca2f2e commit cc3c38b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/lua_shared.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,41 +147,41 @@ expose_symbol!( luaL_typerror, CInt, (state: LuaState, narg: CInt, typename: Cha
147147
#[macro_export]
148148
macro_rules! lua_pop {
149149
($state:expr, $ind:literal) => {
150-
lua_settop( $state, -($ind)-1 );
150+
rglua::lua_shared::lua_settop( $state, -($ind)-1 );
151151
}
152152
}
153153

154154
#[macro_export]
155155
macro_rules! lua_getglobal {
156156
($state:expr, $name:expr) => {
157-
lua_getfield($state, rglua::globals::Lua::GLOBALSINDEX, $name);
157+
rglua::lua_shared::lua_getfield($state, rglua::globals::Lua::GLOBALSINDEX, $name);
158158
}
159159
}
160160

161161
#[macro_export]
162162
macro_rules! lua_setglobal {
163163
($state:expr, $name:expr) => {
164-
lua_setfield($state, rglua::globals::Lua::GLOBALSINDEX, $name);
164+
rglua::lua_shared::lua_setfield($state, rglua::globals::Lua::GLOBALSINDEX, $name);
165165
}
166166
}
167167

168168
#[macro_export]
169169
macro_rules! lua_pushcfunction {
170170
($state:expr, $fnc:expr) => {
171-
lua_pushcclosure($state, $fnc, 0);
171+
rglua::lua_shared::lua_pushcclosure($state, $fnc, 0);
172172
}
173173
}
174174

175175
#[macro_export]
176176
macro_rules! lua_tostring {
177177
($state:expr, $idx:expr) => {
178-
lua_tolstring($state, $idx, 0)
178+
rglua::lua_shared::lua_tolstring($state, $idx, 0)
179179
}
180180
}
181181

182182
#[macro_export]
183183
macro_rules! lua_resume {
184184
($state:expr, $narg:expr) => {
185-
lua_resume_real($state, $narg)
185+
rglua::lua_shared::lua_resume_real($state, $narg)
186186
}
187187
}

0 commit comments

Comments
 (0)