P99
|
Implement initialization functions that are executed early. More...
Go to the source code of this file.
Macros | |
#define | main p99_init_main |
#define | P99_INIT_FUNCTION_DECLARE(FUNC, NR) |
Request that FUNC is to be called at initialization time with priority NR. More... | |
#define | P99_INIT_TRIGGER(NAME, ARGC, ARGV) P99_NOP |
#define | P99_INIT_VARIABLE(NAME, FUNC, NR) |
Request that FUNC is to be called with argument &(NAME) at initialization time with priority NR. More... | |
#define | P99_INTERCEPT_MAIN |
Macro to control compilation of initialization features. More... | |
#define | P99_MAIN_INTERCEPT(NAME) |
Intercept the main function before it is called and run some startup code. More... | |
Functions | |
int | p99_init_main (int, char *[]) |
Implement initialization functions that are executed early.
This can emulate gcc's constructor attribute and call init functions for variables with static storage duration.
The only place that uses this in P99 itself is for threads. There is an optional feature to replace main.
Definition in file p99_init.h.