Changes in tests/exceptions/except-io.hfa [3bf9d10:afe2939]
- File:
-
- 1 edited
-
tests/exceptions/except-io.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/except-io.hfa
r3bf9d10 rafe2939 2 2 3 3 // Echo when a destructor is run and an area/block is left. 4 5 #include <fstream.hfa>6 7 4 struct loud_exit { 8 5 const char * area; … … 14 11 15 12 inline void ^?{}(loud_exit & this) { 16 sout | "Exiting: " | this.area;13 printf("Exiting: %s\n", this.area); 17 14 } 18 15 … … 23 20 inline void ?{}(loud_region & this, const char * region) { 24 21 this.region = region; 25 sout | "Entering: " | region;22 printf("Entering: %s\n", region); 26 23 } 27 24 28 25 inline void ^?{}(loud_region & this) { 29 sout | "Exiting: " | this.region;26 printf("Exiting: %s\n", this.region); 30 27 }
Note:
See TracChangeset
for help on using the changeset viewer.