From 09908b8a55b82f27c5d21f6e5e17e1ecb20462eb Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 6 Jan 2023 15:24:27 +0100 Subject: [PATCH] Add information about the WUMS_DEPENDS_ON macro to the example module --- example/example_module/source/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example/example_module/source/main.cpp b/example/example_module/source/main.cpp index 3309648..6ae79ed 100644 --- a/example/example_module/source/main.cpp +++ b/example/example_module/source/main.cpp @@ -7,6 +7,14 @@ WUMS_MODULE_VERSION("0.1"); WUMS_MODULE_LICENSE("GPL"); WUMS_MODULE_DESCRIPTION("Just an example module"); +/** + * If this modules depends on another module (e.g. the FunctionPatcherModule) you can add a dependency to that module. + * This will enforce that the other module has been loaded and initialized before this module is initialized. + * If the other module is not loaded, this module also fails to load. + * Usage: WUMS_DEPENDS_ON(export_name) + * Example: WUMS_DEPENDS_ON(homebrew_functionpatcher) + */ + WUMS_INITIALIZE(/*wums_app_init_args_t*/ args) { /* Called once when the module has been loaded */