mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 08:28:30 -04:00
AP_Scripting: generator: emit dependancys for operators
This commit is contained in:
parent
596433a19a
commit
cf2ba23089
@ -2132,6 +2132,8 @@ void emit_operators(struct userdata *data) {
|
|||||||
|
|
||||||
assert(data->ud_type == UD_USERDATA);
|
assert(data->ud_type == UD_USERDATA);
|
||||||
|
|
||||||
|
start_dependency(source, data->dependency);
|
||||||
|
|
||||||
for (uint32_t i = 1; i < OP_LAST; i = (i << 1)) {
|
for (uint32_t i = 1; i < OP_LAST; i = (i << 1)) {
|
||||||
const char * op_name = get_name_for_operation((data->operations) & i);
|
const char * op_name = get_name_for_operation((data->operations) & i);
|
||||||
if (op_name == NULL) {
|
if (op_name == NULL) {
|
||||||
@ -2171,6 +2173,8 @@ void emit_operators(struct userdata *data) {
|
|||||||
fprintf(source, "}\n\n");
|
fprintf(source, "}\n\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
end_dependency(source, data->dependency);
|
||||||
}
|
}
|
||||||
|
|
||||||
void emit_methods(struct userdata *node) {
|
void emit_methods(struct userdata *node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user