mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting/generator: generate depends for manual functions on singletons
This commit is contained in:
parent
c18f9f733e
commit
4df2a1bce7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue