|
distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
BIND_LOW_LEVEL_PREINITIALIZER() macro. More...
Go to the source code of this file.
Macros | |
| #define | BIND_LOW_LEVEL_PREINITIALIZER(priority, function) BIND_LOW_LEVEL_INITIALIZER_IMPLEMENTATION(priority, function, ".low_level_preinitializers.") |
| Binds function as low-level preinitializer with specified priority. More... | |
BIND_LOW_LEVEL_PREINITIALIZER() macro.
| #define BIND_LOW_LEVEL_PREINITIALIZER | ( | priority, | |
| function | |||
| ) | BIND_LOW_LEVEL_INITIALIZER_IMPLEMENTATION(priority, function, ".low_level_preinitializers.") |
Binds function as low-level preinitializer with specified priority.
Low-level preinitializers are executed before .bss and .data sections' initialization, before constructors for global and static objects. They are automatically executed in ascending order of priority. When there is a group of multiple low-level preinitializers with the same priority, the execution order within that group is unspecified.
| [in] | priority | is the priority of the low-level preinitializer, [0; 99] |
| [in] | function | is the low-level preinitializer function |