Rename INIT_LAST to INIT_FUNC to avoid confusion
No binary (build failed)
—
(log yok)
| @@ -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); \ | |
| } \ | |
| @@ -76,8 +76,8 @@ | |
| # define UNUSED_PARAM_RESULT | |
| #endif | |
| - | /* used by unit test machinery to run registration functions */ |
| - | #define INIT_LAST __attribute__ ((constructor(2000))) |
| + | /* used by unit test machinery to run registration functions before calling main() */ |
| + | #define INIT_FUNC __attribute__ ((constructor)) |
| /* -fwhole-program makes all symbols local. The attribute externally_visible | |
| * forces a symbol global. */ | |