Use combine_flatten for plugin modules.

This commit is contained in:
Stephen Chung
2020-08-21 21:48:45 +08:00
parent 40f71320f3
commit 08977e2a62
12 changed files with 64 additions and 19 deletions

View File

@@ -26,10 +26,10 @@ def_package!(crate:BasicMathPackage:"Basic mathematic functions.", lib, {
#[cfg(not(feature = "no_float"))]
{
// Floating point functions
lib.combine(exported_module!(float_functions));
lib.combine_flatten(exported_module!(float_functions));
// Trig functions
lib.combine(exported_module!(trig_functions));
lib.combine_flatten(exported_module!(trig_functions));
// Register conversion functions
lib.set_fn_1("to_float", |x: INT| Ok(x as FLOAT));