Remove src/macros.rs

It's not used by anything. It's not even included via `mod macros;`.
This commit is contained in:
Jonas Schievink 2017-06-14 01:24:38 +02:00
parent 8440298e71
commit 5019396bd7
1 changed files with 0 additions and 30 deletions

View File

@ -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
);
}