Changeset 9236060 for src/libcfa/exception.h
- Timestamp:
- Aug 14, 2017, 2:03:39 PM (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:
- 74b007ba
- Parents:
- fd344aa (diff), 54cd58b0 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/exception.h
rfd344aa r9236060 10 10 // Created On : Mon Jun 26 15:11:00 2017 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tus Jul 11 16:31:00 201713 // Update Count : 212 // Last Modified On : Fri Aug 4 15:20:00 2017 13 // Update Count : 5 14 14 // 15 15 16 #ifndef EXCEPTION_H 17 #define EXCEPTION_H 16 #pragma once 18 17 19 20 // Later to be a special structure type.21 typedef int exception;22 18 23 19 #ifdef __CFORALL__ 24 20 extern "C" { 25 21 #endif 22 23 struct __cfaehm__base_exception_t; 24 typedef struct __cfaehm__base_exception_t exception; 25 struct __cfaehm__base_exception_t_vtable { 26 const struct __cfaehm__base_exception_t_vtable * parent; 27 size_t size; 28 void (*copy)(struct __cfaehm__base_exception_t *this, 29 struct __cfaehm__base_exception_t * other); 30 void (*free)(struct __cfaehm__base_exception_t *this); 31 const char (*msg)(struct __cfaehm__base_exception_t *this); 32 }; 33 struct __cfaehm__base_exception_t { 34 struct __cfaehm__base_exception_t_vtable const * virtual_table; 35 }; 36 extern struct __cfaehm__base_exception_t_vtable 37 ___cfaehm__base_exception_t_vtable_instance; 38 26 39 27 40 // Used in throw statement translation. … … 36 49 int (*match_block)(exception * except)); 37 50 51 // Clean-up the exception in catch blocks. 52 void __cfaehm__cleanup_terminate(void * except); 53 38 54 // Data structure creates a list of resume handlers. 39 55 struct __cfaehm__try_resume_node { … … 42 58 }; 43 59 60 // These act as constructor and destructor for the resume node. 44 61 void __cfaehm__try_resume_setup( 45 62 struct __cfaehm__try_resume_node * node, … … 49 66 50 67 // Check for a standard way to call fake deconstructors. 51 struct __cfaehm__cleanup_hook { 52 }; 68 struct __cfaehm__cleanup_hook {}; 53 69 54 70 #ifdef __CFORALL__ 55 71 } 56 72 #endif 57 58 #endif //EXCEPTION_H
Note:
See TracChangeset
for help on using the changeset viewer.