Added pop after loading lua library

This commit is contained in:
Timidger 2017-10-29 14:54:55 -07:00
parent 26b7901ab3
commit 316c6976e4
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ impl Lua {
/// the guarantees of rlua.
pub unsafe fn load_debug(&self) {
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.