summaryrefslogtreecommitdiff
path: root/src/ffi.rs
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2017-06-05 00:41:48 -0400
committerkyren <kerriganw@gmail.com>2017-06-05 00:41:48 -0400
commitb3218137e1121bce19c7b5988960f49bd0e96eae (patch)
tree4d8045bcf5f41a4d5d468c706ee1d911e978fd2a /src/ffi.rs
parente4052bb4d41707533a7c729ee54ee33ec6c3f72c (diff)
downloadmlua-b3218137e1121bce19c7b5988960f49bd0e96eae.zip
Somewhat smarter strategy for error_guard calls, less ungodly slow.
Also add raw_length table function
Diffstat (limited to 'src/ffi.rs')
-rw-r--r--src/ffi.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index 1d210e9..1bf3b17 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -106,6 +106,7 @@ extern "C" {
pub fn lua_setmetatable(state: *mut lua_State, index: c_int);
pub fn lua_len(state: *mut lua_State, index: c_int);
+ pub fn lua_rawlen(state: *mut lua_State, index: c_int) -> usize;
pub fn lua_next(state: *mut lua_State, index: c_int) -> c_int;
pub fn lua_rawequal(state: *mut lua_State, index1: c_int, index2: c_int) -> c_int;