summaryrefslogtreecommitdiff
path: root/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/function.rs')
-rw-r--r--src/function.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/function.rs b/src/function.rs
index efc9da0..8c35ef1 100644
--- a/src/function.rs
+++ b/src/function.rs
@@ -1,6 +1,5 @@
-use std::os::raw::{c_int, c_void};
+use std::os::raw::c_int;
use std::ptr;
-use std::slice;
use crate::error::{Error, Result};
use crate::ffi;
@@ -214,7 +213,11 @@ impl<'lua> Function<'lua> {
///
/// If `strip` is true, the binary representation may not include all debug information
/// about the function, to save space.
+ #[cfg(not(feature = "luau"))]
pub fn dump(&self, strip: bool) -> Vec<u8> {
+ use std::os::raw::c_void;
+ use std::slice;
+
unsafe extern "C" fn writer(
_state: *mut ffi::lua_State,
buf: *const c_void,