ソースを参照

Fixed leftovers from first version.

IVogel 2 年 前
コミット
9ff5f4796b
1 ファイル変更4 行追加4 行削除
  1. 4 4
      src/lib.rs

+ 4 - 4
src/lib.rs

@@ -1,6 +1,6 @@
 #![allow(non_camel_case_types)]
 
-use std::{ffi::c_void, hint::unreachable_unchecked, ptr::null_mut};
+use std::{ffi::c_void, ptr::null_mut};
 
 mod loadx;
 pub use loadx::loadx;
@@ -18,21 +18,21 @@ macro_rules! pop {
 #[macro_export]
 macro_rules! getglobal {
     ($L:expr, $s:expr) => {
-        $crate::lua_getfield($L, $crate::GLOBALSINDEX, $s)
+        $crate::getfield($L, $crate::GLOBALSINDEX, $s)
     };
 }
 
 #[macro_export]
 macro_rules! setglobal {
     ($L:expr, $s:expr) => {
-        $crate::lua_setfield($L, $crate::GLOBALSINDEX, $s)
+        $crate::setfield($L, $crate::GLOBALSINDEX, $s)
     };
 }
 
 #[macro_export]
 macro_rules! upvalueindex {
     ($index:expr) => {
-        (-10002) - ($index)
+        $crate::GLOBALSINDEX - ($index)
     };
 }