Luna::add_dependency_modules
RV add_dependency_modules(Module *current, Span< Module * > dependencies)
Adds one span of modules as the dependency modules of one module.
Parameters
-
in current
The current module that depends on
dependencies
. -
in dependencies
The dependency modules. If these modules are not added, they will be added to the module system firstly.
Valid Usage
-
current
must point to one module that is already registered by add_module. -
All module pointers in
dependencies
must point to valid module instances.