How can I preserve variable names in C++ code generated by 'generateAudioPlugin -juceproject'
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Arkadiusz Lewandowski
el 12 de Nov. de 2022
Comentada: Arkadiusz Lewandowski
el 25 de Nov. de 2022
I am generating C++ code from my audio plugin using 'generateAudioPlugin -juceproject'. Unfortunatelly, variable names in the C++ code often do not correspond the variable names in MATLAB code due to memory usage optimizations. How can I force 'generateAudioPlugin' to keep variable names consistent between MATLAB code and C++ code?
If I was working directly with 'codegen', I could pass 'coder.CodeConfig' object with property 'PreserveVariableNames' set to 'UserNames', however, I cannot find an option to pass this object to 'generateAudioPlugin'.
Any help will be appreciated!
2 comentarios
Jimmy Lapierre
el 14 de Nov. de 2022
There is no option to do this now. If you can share a simple enough example where it would make sense, we could look into it further and consider making this an option or change the current behavior.
Respuestas (0)
Ver también
Categorías
Más información sobre Code Generation and Deployment en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!