Changeset f73f5f4 for src/libcfa
- Timestamp:
- Jul 12, 2017, 10:14:15 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3268a58, 76f2bdcb
- Parents:
- f2b12406 (diff), 7812f1d1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/libcfa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/exception.c
rf2b12406 rf73f5f4 10 10 // Created On : Mon Jun 26 15:13:00 2017 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Mon Nov 26 15:11:00 201713 // Update Count : 012 // Last Modified On : Tus Jul 11 16:36:00 2017 13 // Update Count : 1 14 14 // 15 15 … … 44 44 // RESUMPTION ================================================================ 45 45 46 void __cfaehm__throw_resum ption(exception * except) {46 void __cfaehm__throw_resume(exception * except) { 47 47 48 48 // DEBUG … … 65 65 66 66 // Fall back to termination: 67 __cfaehm__throw_terminat ion(except);67 __cfaehm__throw_terminate(except); 68 68 // TODO: Default handler for resumption. 69 69 } … … 111 111 } 112 112 113 void __cfaehm__throw_terminat ion( exception * val ) {113 void __cfaehm__throw_terminate( exception * val ) { 114 114 // Store the current exception 115 115 shared_stack.current_exception = *val; … … 147 147 148 148 // Nesting this the other way would probably be faster. 149 void __cfaehm__rethrow_terminat ion(void) {149 void __cfaehm__rethrow_terminate(void) { 150 150 // DEBUG 151 151 printf("Rethrowing termination exception\n"); 152 152 153 __cfaehm__throw_terminat ion(&shared_stack.current_exception);153 __cfaehm__throw_terminate(&shared_stack.current_exception); 154 154 } 155 155 -
src/libcfa/exception.h
rf2b12406 rf73f5f4 10 10 // Created On : Mon Jun 26 15:11:00 2017 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Mon Nov 26 15:11:00 201713 // Update Count : 012 // Last Modified On : Tus Jul 11 16:31:00 2017 13 // Update Count : 2 14 14 // 15 15 … … 22 22 23 23 #ifdef __CFORALL__ 24 extern " BuiltinC" {24 extern "C" { 25 25 #endif 26 26 27 27 // Used in throw statement translation. 28 void __cfaehm__throw_terminat ion(exception * except) __attribute__((noreturn));29 void __cfaehm__rethrow_terminat ion() __attribute__((noreturn));30 void __cfaehm__throw_resum ption(exception * except);28 void __cfaehm__throw_terminate(exception * except) __attribute__((noreturn)); 29 void __cfaehm__rethrow_terminate() __attribute__((noreturn)); 30 void __cfaehm__throw_resume(exception * except); 31 31 32 32 // Function catches termination exceptions.
Note:
See TracChangeset
for help on using the changeset viewer.