소스 검색

This was a macro.

IVogel 2 년 전
부모
커밋
e95881bc79
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/lib.rs

+ 3 - 3
src/lib.rs

@@ -420,9 +420,9 @@ extern "C" {
     /// Checks whether the function has an argument of any type (including **nil**) at position `index`.
     #[link_name = "luaL_checkany"]
     pub fn Lcheckany(state: lua_State, index: i32);
-    /// Checks whether `cond` is true. If not, raises an error with the following message, where `func` is retrieved from the call stack: 
-    #[link_name = "luaL_argcheck"]
-    pub fn Largcheck(state: lua_State, cond: bool, index: i32, msg: *const u8);
+    /// Raises an error with the following message, where `func` is retrieved from the call stack
+    #[link_name = "luaL_argerror"]
+    pub fn Largerror(state: lua_State, cond: bool, index: i32, msg: *const u8);
 
     /// If the registry already has the key `type_name`, returns `false`. Otherwise, creates a new table to be used as a metatable for userdata, adds it to the registry with key `type_name`, and returns `true`.
     ///