From 5019396bd7fb60e78169e9ad30414ebc95fc6fb0 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 14 Jun 2017 01:24:38 +0200 Subject: [PATCH] Remove src/macros.rs It's not used by anything. It's not even included via `mod macros;`. --- src/macros.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/macros.rs diff --git a/src/macros.rs b/src/macros.rs deleted file mode 100644 index 19aecba..0000000 --- a/src/macros.rs +++ /dev/null @@ -1,30 +0,0 @@ -#[macro_export] -macro_rules! lua_multi { - [] => { $crate::LNil }; - [$head: expr] => { $crate::LCons($head, $crate::LNil) }; - [$head: expr, $($tail: expr), *] => { $crate::LCons($head, lua_multi![$($tail), *]) }; - [$head: expr, $($tail: expr), *,] => { $crate::LCons($head, lua_multi![$($tail), *]) }; -} - -#[macro_export] -macro_rules! lua_multi_pat { - [] => { $crate::LNil{} }; - [$head: pat] => { $crate::LCons($head, $crate::LNil{}) }; - [$head: pat, $($tail: pat), *] => { $crate::LCons($head, lua_multi_pat![$($tail), *]) }; - [$head: pat, $($tail: pat), *,] => { $crate::LCons($head, lua_multi_pat![$($tail), *]) }; -} - -#[macro_export] -macro_rules! LuaMulti { - [] => { $crate::LNil }; - [$head: ty] => { $crate::LCons<$head, $crate::LNil> }; - [$head: ty, $($tail: ty), *] => { $crate::LCons<$head, LuaMulti![$($tail), *]> }; - [$head: ty, $($tail: ty), *,] => { $crate::LCons<$head, LuaMulti![$($tail), *]> }; -} - -#[macro_export] -macro_rules! lua_cstr { - ($s:expr) => ( - concat!($s, "\0") as *const str as *const [c_char] as *const c_char - ); -}