Changeset 3bf9d10 for tests/exceptions/conditional.cfa
- Timestamp:
- Jun 21, 2023, 9:45:08 PM (14 months ago)
- Branches:
- master
- Children:
- 6065281f
- Parents:
- 2de175ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/conditional.cfa
r2de175ce r3bf9d10 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.cfa> 5 7 6 8 exception num_error { … … 11 13 12 14 void caught_num_error(int expect, num_error * actual) { 13 printf("Caught num_error: expected=%d actual=%d.\n", expect, actual->num);15 sout | "Caught num_error: expected=" | expect | "actual=" | actual->num | '.'; 14 16 } 15 17
Note: See TracChangeset
for help on using the changeset viewer.