source:
libcfa/prelude/bootloader.cfa
@
eb5dbfd
Last change on this file since eb5dbfd was be3f163, checked in by , 12 months ago | |
---|---|
|
|
File size: 433 bytes |
Rev | Line | |
---|---|---|
[6d5790d] | 1 | extern "C" { static inline int invoke_main( int argc, char * argv[], char * envp[]); } |
[7874d77] | 2 | int cfa_args_argc; |
3 | char ** cfa_args_argv; | |
4 | char ** cfa_args_envp; | |
[7dd98b6] | 5 | __attribute__((weak)) extern int cfa_main_returned; |
[3fe34ae] | 6 | |
[6d5790d] | 7 | int main( int argc, char * argv[], char * envp[] ) { |
[7874d77] | 8 | cfa_args_argc = argc; |
9 | cfa_args_argv = argv; | |
10 | cfa_args_envp = envp; | |
[478c610] | 11 | int ret = invoke_main(argc, argv, envp); |
[6d5790d] | 12 | if( &cfa_main_returned ) cfa_main_returned = 1; |
[478c610] | 13 | return ret; |
[3fe34ae] | 14 | } |
Note: See TracBrowser
for help on using the repository browser.