Rename INIT_LAST to INIT_FUNC to avoid confusion
We don't have an INIT_FIRST, so let's rename INIT_LAST to INIT_FUNC to imply that the function is called at program start-up. Also: the priority argument for __attribute__((constructor)) isn't used, so let's remove it. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
d3633b7e9c
commit
bf0f2c7aa6
@ -1960,7 +1960,7 @@ void bbunit_settestfailed(void);
|
||||
.name = #NAME, \
|
||||
.testfunc = bbunit_##NAME##_test, \
|
||||
}; \
|
||||
static void INIT_LAST bbunit_##NAME##_register(void) \
|
||||
static void INIT_FUNC bbunit_##NAME##_register(void) \
|
||||
{ \
|
||||
bbunit_registertest(&bbunit_##NAME##_elem); \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user