nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
49 stars 31 forks source link

Improve support for manual topology setup #239

Closed bocchino closed 1 year ago

bocchino commented 1 year ago

The topology code generator currently optimizes away functions that are not called by the auto-generated setup function -- e.g., no loadParameters function is generated if there are no parameters and setup doesn't call loadParameters. This causes issues when users want to write a manual setup function, because the setup function has to change if the functions appear and disappear. The fix is to generate empty functions and call them.