mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 11:29:51 +03:00
More simulators in Companion
This commit is contained in:
parent
ddac3ea5e0
commit
a0132fc4e7
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def build_struct(cursor):
|
|||
print(" copy%s(&dest->%s[i], &src->%s[i]);" % (c.type.get_array_element_type().spelling, c.spelling, c.spelling))
|
||||
print(" }")
|
||||
else:
|
||||
print(" memcpy(&dest->%s, &src->%s, sizeof(dest->%s));" % (c.spelling, c.spelling, c.spelling))
|
||||
print(" memcpy(dest->%s, src->%s, sizeof(dest->%s));" % (c.spelling, c.spelling, c.spelling))
|
||||
elif c.type.get_declaration().spelling in structs:
|
||||
print(" copy%s(&dest->%s, &src->%s);" % (c.type.get_declaration().spelling, c.spelling, c.spelling))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue