AP_Scripting/generator: generate depends for manual functions on singletons

This commit is contained in:
Thomas Watson 2024-06-01 23:14:01 -05:00 committed by Peter Barker
parent c18f9f733e
commit 4df2a1bce7
1 changed files with 2 additions and 0 deletions

View File

@ -2414,11 +2414,13 @@ void emit_index(struct userdata *head) {
struct method_alias *alias = node->method_aliases; struct method_alias *alias = node->method_aliases;
while(alias) { while(alias) {
start_dependency(source, alias->dependency);
if (alias->type == ALIAS_TYPE_MANUAL) { if (alias->type == ALIAS_TYPE_MANUAL) {
fprintf(source, " {\"%s\", %s},\n", alias->alias, alias->name); fprintf(source, " {\"%s\", %s},\n", alias->alias, alias->name);
} else if (alias->type == ALIAS_TYPE_NONE) { } else if (alias->type == ALIAS_TYPE_NONE) {
fprintf(source, " {\"%s\", %s_%s},\n", alias->alias, node->sanatized_name, alias->name); fprintf(source, " {\"%s\", %s_%s},\n", alias->alias, node->sanatized_name, alias->name);
} }
end_dependency(source, alias->dependency);
alias = alias->next; alias = alias->next;
} }