Changes in src/libcfa/exception.h [86d5ba7c:6b0b624]
- File:
-
- 1 edited
-
src/libcfa/exception.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/exception.h
r86d5ba7c r6b0b624 9 9 // Author : Andrew Beach 10 10 // Created On : Mon Jun 26 15:11:00 2017 11 // Last Modified By : Andrew Beach12 // Last Modified On : Fri Jul 27 12:42:00201713 // Update Count : 411 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 22 09:57:02 2017 13 // Update Count : 3 14 14 // 15 15 16 16 #pragma once 17 17 18 // Later to be a special structure type. 19 typedef int exception; 18 20 19 21 #ifdef __CFORALL__ 20 22 extern "C" { 21 23 #endif 22 23 #if 124 typedef int exception;25 #else26 struct exception_t;27 struct exception_t_vtable {28 struct exception_t_vtable const * parent;29 size_t size;30 void (*copy)(struct exception_t *this, struct exception_t * other);31 void (*free)(struct exception_t *this);32 const char (*msg)(struct exception_t *this);33 };34 struct exception_t {35 struct exception_vtable const * virtual_table;36 };37 typedef struct exception_t exception;38 #endif39 40 24 41 25 // Used in throw statement translation. … … 50 34 int (*match_block)(exception * except)); 51 35 52 // Clean-up the exception in catch blocks.53 void __cfaehm__cleanup_terminate(exception ** except);54 55 36 // Data structure creates a list of resume handlers. 56 37 struct __cfaehm__try_resume_node { … … 59 40 }; 60 41 61 // These act as constructor and destructor for the resume node.62 42 void __cfaehm__try_resume_setup( 63 43 struct __cfaehm__try_resume_node * node, … … 67 47 68 48 // Check for a standard way to call fake deconstructors. 69 struct __cfaehm__cleanup_hook {}; 49 struct __cfaehm__cleanup_hook { 50 }; 70 51 71 52 #ifdef __CFORALL__
Note:
See TracChangeset
for help on using the changeset viewer.