Changes in tests/exceptions/except-io.hfa [afe2939:3bf9d10]
- File:
-
- 1 edited
-
tests/exceptions/except-io.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/except-io.hfa
rafe2939 r3bf9d10 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.