#![cfg(not(doc))]
use low_luajit::{AmountReturned, LuaState};
extern "C-unwind" fn test(mut lua: LuaState) -> AmountReturned {
let foo = lua.find_table(LuaState::GLOBALS_INDEX, c"gmatch", 0);
lua.push_nil();
lua.pop(1);
let _ = dbg!(foo, lua.get_top());
lua.new_table();
lua.set_metatable(-12312321);
lua.return_none()
}
#[unsafe(no_mangle)]
extern "C-unwind" fn luaopen_test(lua: LuaState) -> AmountReturned {
lua.return_cfunction(test)
}