Changeset 478c610 for libcfa/prelude


Ignore:
Timestamp:
Aug 9, 2021, 3:46:52 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
9373b6a
Parents:
ebf3989
Message:

Added cfa_main_returned to figure out if the main returned normally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/bootloader.cf

    rebf3989 r478c610  
    33char ** cfa_args_argv;
    44char ** cfa_args_envp;
     5int cfa_main_returned = 0;
    56
    67int main(int argc, char* argv[], char* envp[]) {
     
    89        cfa_args_argv = argv;
    910        cfa_args_envp = envp;
    10         return invoke_main(argc, argv, envp);
     11        int ret = invoke_main(argc, argv, envp);
     12        cfa_main_returned = 1;
     13        return ret;
    1114}
Note: See TracChangeset for help on using the changeset viewer.