Skip to content
Commit ef8c6d4e authored by Jordan Yates's avatar Jordan Yates Committed by Carles Cufí
Browse files

init: add `SYS_INIT_NAMED`



Add a variant of `SYS_INIT` that is explicitly given a name, instead of
using the function name. This allows multiple `SYS_INIT` entries to use
the same initialisation function, without needing the `__COUNTER__`
hack in `Z_SYS_NAME`.

The `__COUNTER__` hack is undesirable as it makes it impossible to
reconstruct the name of the `struct init_entry` instance from the macro
parameters.

Signed-off-by: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent 251755e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment