- File:
-
- 1 edited
-
tests/exceptions/cancel/thread.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/cancel/thread.cfa
recfd758 rab8c6a6 4 4 #include <exception.hfa> 5 5 6 EHM_EXCEPTION(internal_error)(); 7 EHM_VIRTUAL_TABLE(internal_error, internal_vt); 6 TRIVIAL_EXCEPTION(internal_error); 8 7 9 8 thread WillCancel {}; … … 15 14 void main(WillCancel &) { 16 15 printf("1"); 17 cancel_stack((internal_error){ &internal_vt});16 cancel_stack((internal_error){}); 18 17 printf("!"); 19 18 } … … 26 25 join(cancel); 27 26 printf("4"); 28 } catchResume ( SomeThreadCancelled* error) {27 } catchResume (ThreadCancelled(WillCancel) * error) { 29 28 printf("2"); 30 29 if ((virtual internal_error *)error->the_exception) { … … 43 42 } 44 43 printf("4"); 45 } catchResume ( SomeThreadCancelled* error) {44 } catchResume (ThreadCancelled(WillCancel) * error) { 46 45 printf("2"); 47 46 if ((virtual internal_error *)error->the_exception) {
Note:
See TracChangeset
for help on using the changeset viewer.