Maraiah/tycho/source/meta.rs

26 lines
458 B
Rust
Raw Normal View History

//! Meta-information exposing functions.
use maraiah::{ffi, meta};
macro_rules! meta_str {
2019-07-05 20:21:11 -07:00
($($name:ident = $e:expr;)*) => {
$(
#[no_mangle]
pub extern "C" fn $name() -> ffi::NT
{
$e
}
)*
}
}
2019-06-30 16:32:17 -07:00
meta_str! {
2019-07-05 20:21:11 -07:00
tychoAuthors = meta::ffi::authors();
tychoHomepage = meta::ffi::homepage();
tychoLicenseText = meta::ffi::license_text();
tychoRepository = meta::ffi::repository();
tychoVersion = meta::ffi::version();
2019-06-30 16:32:17 -07:00
}
// EOF