Ignore:
Timestamp:
Jun 15, 2017, 5:12:41 PM (5 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
974bcdd, cc3e4d0
Parents:
cdd1695
Message:

Added rethrow to translation.
Implemend and tested termination rethrowing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/working/exception/impl/exception.c

    rcdd1695 r35ba584c  
    7373}
    7474
    75 // Example throw routine
    7675void __throw_terminate( int val ) {
    7776        // Store the current exception
     
    107106        printf("UNWIND ERROR %d after raise exception\n", ret);
    108107        abort();
     108}
     109
     110// Nesting this the other way would probably be faster.
     111void __rethrow_terminate(void) {
     112        // DEBUG
     113        printf("Rethrowing termination exception\n");
     114
     115        __throw_terminate(shared_stack.current_exception);
    109116}
    110117
Note: See TracChangeset for help on using the changeset viewer.