P99
|
◆ P99_MAIN_INTERCEPT
Value:
int NAME(int, char*[]); \
P99_WEAK(P99_PASTE2(p00_init_func_, NAME)) \
P99_WEAK(main) \
P99_PASTE2(p00_init_func_, NAME)(&p00_argc, &p00_argv); \
return NAME(p00_argc, p00_argv); \
} \
P99_WEAK(P99_PASTE2(p00_init_func_, NAME)) \
Intercept the This is a fragile method to intercept A complete example would like the one defined here in this file: // here do something reasonable
}
# if defined(P99_INTERCEPT_MAIN)
# undef main
# define main p99_init_main
# endif
...
P99_INIT_TRIGGER(NAME, &argc, &argv);
...
return EXIT_SUCCESS;
}
This has three different parts. First comes the declaration of the function body that is to be executed when
Definition at line 238 of file p99_init.h. |