Skip to content

Maintenance release: fix bug with -ig

Compare
Choose a tag to compare
@maxime-esa maxime-esa released this 17 Sep 15:59
· 731 commits to master since this release

The -ig option combined with the C backend (-c) instructs the compiler to generate constant initializers for the complex types.
However it was done using the "const" keyword, which in C does not represent real constants (contrary to C++), and this resulted in compilation errors in some cases.
This version generates #defines for the initializers (in C only, C++ still uses constants).