ADTast-experimentalenumforall-pointer-decayjacob/cs343-translationpthread-emulationqualifiedEnum
Last change
on this file since 6c2dc00 was
478c610,
checked in by Thierry Delisle <tdelisle@…>, 3 years ago
|
Added cfa_main_returned to figure out if the main returned normally
|
-
Property mode set to
100644
|
File size:
376 bytes
|
Rev | Line | |
---|
[13de47bc] | 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; |
---|
[478c610] | 5 | int cfa_main_returned = 0; |
---|
[3fe34ae] | 6 | |
---|
| 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); |
---|
| 12 | cfa_main_returned = 1; |
---|
| 13 | return ret; |
---|
[3fe34ae] | 14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.