From 4df2a1bce70fc51b045f0b452cfb3cdcf1892e2a Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sat, 1 Jun 2024 23:14:01 -0500 Subject: [PATCH] AP_Scripting/generator: generate depends for manual functions on singletons --- libraries/AP_Scripting/generator/src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Scripting/generator/src/main.c b/libraries/AP_Scripting/generator/src/main.c index 9338d12187..b2f4e30010 100644 --- a/libraries/AP_Scripting/generator/src/main.c +++ b/libraries/AP_Scripting/generator/src/main.c @@ -2414,11 +2414,13 @@ void emit_index(struct userdata *head) { struct method_alias *alias = node->method_aliases; while(alias) { + start_dependency(source, alias->dependency); if (alias->type == ALIAS_TYPE_MANUAL) { fprintf(source, " {\"%s\", %s},\n", alias->alias, alias->name); } else if (alias->type == ALIAS_TYPE_NONE) { fprintf(source, " {\"%s\", %s_%s},\n", alias->alias, node->sanatized_name, alias->name); } + end_dependency(source, alias->dependency); alias = alias->next; }