source: libcfa/prelude/bootloader.cf @ 2261bcc

Last change on this file since 2261bcc was 6d5790d, checked in by Peter A. Buhr <pabuhr@…>, 15 months ago

formatting

  • Property mode set to 100644
File size: 433 bytes
Line 
1extern "C" { static inline int invoke_main( int argc, char * argv[], char * envp[]); }
2int cfa_args_argc;
3char ** cfa_args_argv;
4char ** cfa_args_envp;
5__attribute__((weak)) extern int cfa_main_returned;
6
7int main( int argc, char * argv[], char * envp[] ) {
8        cfa_args_argc = argc;
9        cfa_args_argv = argv;
10        cfa_args_envp = envp;
11        int ret = invoke_main(argc, argv, envp);
12        if( &cfa_main_returned ) cfa_main_returned = 1;
13        return ret;
14}
Note: See TracBrowser for help on using the repository browser.