Add more module tests.
This commit is contained in:
@@ -178,7 +178,7 @@ macro_rules! def_register {
|
||||
(imp $abi:ident : $($par:ident => $arg:expr => $mark:ty => $param:ty => $let:stmt => $clone:expr),*) => {
|
||||
// ^ function ABI type
|
||||
// ^ function parameter generic type name (A, B, C etc.)
|
||||
// ^ call argument(like A, *B, &mut C etc)
|
||||
// ^ call argument(like A, *B, &mut C etc)
|
||||
// ^ function parameter marker type (T, Ref<T> or Mut<T>)
|
||||
// ^ function parameter actual type (T, &T or &mut T)
|
||||
// ^ argument let statement
|
||||
|
@@ -1260,8 +1260,12 @@ impl Module {
|
||||
/// defined in the module, are _merged_ into a _unified_ namespace before each call.
|
||||
/// Therefore, all functions will be found, at the expense of some performance.
|
||||
///
|
||||
/// * If `false`, each function is registered independently and cannot cross-call
|
||||
/// each other. Functions are searched in the global namespace.
|
||||
/// * If `false`, each function is registered independently and cannot cross-call each other.
|
||||
/// Functions are searched in the global namespace.
|
||||
/// This is roughly 2x faster than the `true` case.
|
||||
///
|
||||
/// Set `merge_namespaces` to `false` if the ultimate intention is to load the module
|
||||
/// via `Engine::load_package` because it does not create any module namespace.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Reference in New Issue
Block a user