Changes in tests/exceptions/defaults.cfa [d00d581:ecfd758]
- File:
-
- 1 edited
-
tests/exceptions/defaults.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/defaults.cfa
rd00d581 recfd758 4 4 #include <exception.hfa> 5 5 6 exception log_message { 6 EHM_EXCEPTION(log_message)( 7 7 char * msg; 8 };8 ); 9 9 10 10 _EHM_DEFINE_COPY(log_message, ) … … 32 32 33 33 // I don't have a good use case for doing the same with termination. 34 exception jump {};34 EHM_EXCEPTION(jump)(); 35 35 void defaultTerminationHandler(jump &) { 36 36 printf("jump default handler.\n"); 37 37 } 38 38 39 vtable(jump) jump_vt;39 EHM_VIRTUAL_TABLE(jump, jump_vt); 40 40 41 41 void jump_test(void) { … … 48 48 } 49 49 50 exception first {};51 vtable(first) first_vt;50 EHM_EXCEPTION(first)(); 51 EHM_VIRTUAL_TABLE(first, first_vt); 52 52 53 exception unhandled_exception {};54 vtable(unhandled_exception) unhandled_vt;53 EHM_EXCEPTION(unhandled_exception)(); 54 EHM_VIRTUAL_TABLE(unhandled_exception, unhandled_vt); 55 55 56 56 void unhandled_test(void) { … … 69 69 } 70 70 71 exception second {};72 vtable(second) second_vt;71 EHM_EXCEPTION(second)(); 72 EHM_VIRTUAL_TABLE(second, second_vt); 73 73 74 74 void cross_test(void) {
Note:
See TracChangeset
for help on using the changeset viewer.