Refactor.

This commit is contained in:
Stephen Chung
2020-08-24 22:37:44 +08:00
parent 2fbc1b7910
commit 9ab3d87cfc
6 changed files with 85 additions and 74 deletions

View File

@@ -38,10 +38,10 @@ macro_rules! gen_concat_functions {
}
macro_rules! reg_functions {
($mod_name:ident += $root:ident ; $($arg_type:ident),+) => {
$(set_exported_fn!($mod_name, "+", $root::$arg_type::append_func);)*
$(set_exported_fn!($mod_name, "+", $root::$arg_type::prepend_func);)*
}
($mod_name:ident += $root:ident ; $($arg_type:ident),+) => { $(
set_exported_fn!($mod_name, "+", $root::$arg_type::append_func);
set_exported_fn!($mod_name, "+", $root::$arg_type::prepend_func);
)* }
}
def_package!(crate:MoreStringPackage:"Additional string utilities, including string building.", lib, {