AP_Scripting: generator: use depends for singleton strings
This commit is contained in:
parent
1e60d2557b
commit
ec4949c9e3
@ -2010,7 +2010,9 @@ void emit_sandbox(void) {
|
||||
struct userdata *single = parsed_singletons;
|
||||
fprintf(source, "const char *singletons[] = {\n");
|
||||
while (single) {
|
||||
start_dependency(source, single->dependency);
|
||||
fprintf(source, " \"%s\",\n", single->alias ? single->alias : single->sanatized_name);
|
||||
end_dependency(source, single->dependency);
|
||||
single = single->next;
|
||||
}
|
||||
fprintf(source, "};\n\n");
|
||||
|
Loading…
Reference in New Issue
Block a user