Luna::add_dependency_module

RV add_dependency_module(Module *current, Module *dependency)

Adds one module as the dependency module of one module. This is usually called in module registration callback.

Parameters

  • in current

    The current module that depends on dependency.

  • in dependency

    The dependency module. If this module is not added, it will be added to the module system firstly.

Valid Usage

  • current must point to one module that is already registered by add_module.

  • dependency must point to one valid module instance.