How to use netlist-passed parameter in C++ code

I don’t see this as a problem. STM32CubeIDE does it just fine in my experience. They don’t try to rewrite my code but have clearly marked user code blocks where I can but my code. Like the // Implement module evaluation code here: you already have. Everything else can be overwritten. Copying code back and forth is error-prone and since the debugging capabilities are limited, not something I want to do often.