Changeset 48ec19a for tests/exceptions/except-io.hfa
- Timestamp:
- Jun 26, 2023, 10:51:47 AM (2 years ago)
- Branches:
- master
- Children:
- 917e1fd
- Parents:
- adc73a5 (diff), 1fbf481 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/except-io.hfa
radc73a5 r48ec19a 2 2 3 3 // Echo when a destructor is run and an area/block is left. 4 5 #include <fstream.hfa> 6 4 7 struct loud_exit { 5 8 const char * area; … … 11 14 12 15 inline void ^?{}(loud_exit & this) { 13 printf("Exiting: %s\n", this.area);16 sout | "Exiting: " | this.area; 14 17 } 15 18 … … 20 23 inline void ?{}(loud_region & this, const char * region) { 21 24 this.region = region; 22 printf("Entering: %s\n", region);25 sout | "Entering: " | region; 23 26 } 24 27 25 28 inline void ^?{}(loud_region & this) { 26 printf("Exiting: %s\n", this.region);29 sout | "Exiting: " | this.region; 27 30 }
Note:
See TracChangeset
for help on using the changeset viewer.