This need some kind of workaround. Some compiler (an Apple one and SPARK offline, not the online one) load all preprocessor assignement not in order (grr!), as result the placeholders are not allowed. For instance, fonts uses _PRGMTAG placeholder that it's converted in 'null' or 'PROGMEM' in relation to the processor used, this happen because files should be loaded in order as I decided in library.
Sadly, some compiler will not load files in order (as I decided with includes) and as result they trigger an error when there's a preprocessor placeholder (like PRGMTAG_).
I wonder if I can use something like:
#pragma startup progtagAssignFuncion
and
`void __attribute((constructor)) progtagAssignFuncion();`
depends on compiler, this should force compiler to load function BEFORE main.
I would like to know some opinion about that...
This need some kind of workaround. Some compiler (an Apple one and SPARK offline, not the online one) load all preprocessor assignement not in order (grr!), as result the placeholders are not allowed. For instance, fonts uses _PRGMTAG placeholder that it's converted in 'null' or 'PROGMEM' in relation to the processor used, this happen because files should be loaded in order as I decided in library. Sadly, some compiler will not load files in order (as I decided with includes) and as result they trigger an error when there's a preprocessor placeholder (like PRGMTAG_). I wonder if I can use something like:
#pragma startup progtagAssignFuncion
and `void __attribute((constructor)) progtagAssignFuncion();` depends on compiler, this should force compiler to load function BEFORE main. I would like to know some opinion about that...