Added pop after loading lua library
This commit is contained in:
parent
26b7901ab3
commit
316c6976e4
|
@ -563,6 +563,7 @@ impl Lua {
|
||||||
/// the guarantees of rlua.
|
/// the guarantees of rlua.
|
||||||
pub unsafe fn load_debug(&self) {
|
pub unsafe fn load_debug(&self) {
|
||||||
ffi::luaL_requiref(self.state, cstr!("debug"), ffi::luaopen_debug, 1);
|
ffi::luaL_requiref(self.state, cstr!("debug"), ffi::luaopen_debug, 1);
|
||||||
|
ffi::lua_pop(self.state, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Loads a chunk of Lua code and returns it as a function.
|
/// Loads a chunk of Lua code and returns it as a function.
|
||||||
|
|
Loading…
Reference in New Issue