distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
BIND_LOW_LEVEL_INITIALIZER() macro. More...
Go to the source code of this file.
Macros | |
#define | BIND_LOW_LEVEL_INITIALIZER(priority, function) BIND_LOW_LEVEL_INITIALIZER_IMPLEMENTATION(priority, function, ".low_level_initializers.") |
Binds function as low-level initializer with specified priority. More... | |
BIND_LOW_LEVEL_INITIALIZER() macro.
#define BIND_LOW_LEVEL_INITIALIZER | ( | priority, | |
function | |||
) | BIND_LOW_LEVEL_INITIALIZER_IMPLEMENTATION(priority, function, ".low_level_initializers.") |
Binds function as low-level initializer with specified priority.
Low-level initializers are executed after .bss and .data sections have been initialized, but 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 initializers with the same priority, the execution order within that group is unspecified.
Values of priority used internally by distortos:
[in] | priority | is the priority of the low-level initializer, [0; 99] |
[in] | function | is the low-level initializer function |