1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
// Macros for changing function names. // Automatically generated by build.rs. extern crate paste; // This library was build with version renaming, so rewrite every function name // with its name with version number appended. // The macro below will rename a symbol `foo::bar` to `foo::bar_66` (where "66") // may be some other number depending on the ICU library in use. #[cfg(feature="renaming")] #[macro_export] macro_rules! versioned_function { ($i:ident) => { paste::expr! { [< $i _66 >] } } } // This allows the user to override the renaming configuration detected from // icu-config. #[cfg(not(feature="renaming"))] #[macro_export] macro_rules! versioned_function { ($func_name:path) => { $func_name } }