From f66848dbd677b1027bade5728e04954c313231af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 Apr 2023 13:12:04 +0200 Subject: Make sure main module_functions entry is after submodules --- libbuild2/module.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/module.hxx') diff --git a/libbuild2/module.hxx b/libbuild2/module.hxx index c638c70..6cdd040 100644 --- a/libbuild2/module.hxx +++ b/libbuild2/module.hxx @@ -151,9 +151,9 @@ namespace build2 // // The part in the function name is the main module name without // submodule components (for example, `c` in `c.config`) and the load - // function is expected to return boot/init functions for all its submodules - // (if any) as well as for the module itself as an array of module_functions - // terminated with an all-NULL entry. + // function is expected to return boot/init functions as an array of + // module_functions: entries for all its submodules (if any) first, followed + // by the module itself, and terminated with an all-NULL entry. // // Note that the load function is guaranteed to be called during serial // execution (either from main() or during the load phase). -- cgit v1.1