- File:
-
- 1 edited
-
tests/exceptions/conditional.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/conditional.cfa
rfe0b94f rd00d581 3 3 // I may fold this back into terminate.cfa and resume.cfa once setting 4 4 // up the non-trivial exception is reasonable to do. 5 6 #include <fstream.hfa>7 5 8 6 exception num_error { … … 13 11 14 12 void caught_num_error(int expect, num_error * actual) { 15 sout | "Caught num_error: expected=" | expect | "actual=" | actual->num | '.';13 printf("Caught num_error: expected=%d actual=%d.\n", expect, actual->num); 16 14 } 17 15
Note:
See TracChangeset
for help on using the changeset viewer.