Changes in / [329c62f:454aab2]
- File:
-
- 1 edited
-
tests/exceptions/message.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/message.cfa
r329c62f r454aab2 42 42 } 43 43 44 // Do not construct an exception without a vtable!45 void ?{}(BadIndexException&) = void;46 47 void ?{}(BadIndexException & this,48 vtable(BadIndexException) & vt, int value, int size) {49 this.virtual_table = &vt;50 this.value = value;51 this.size = size;52 this.message = 0p;53 }54 55 void ?{}(BadIndexException & this, BadIndexException that) {56 copy(&this, &that);57 }58 59 44 void ^?{}(BadIndexException & this) { 60 45 free(this.message); … … 69 54 // This is not supposed to be a real range check, but that's the idea: 70 55 void failRangeCheck(int index, int size) { 71 throw (BadIndexException){ arrayIndex, index, size };56 throw (BadIndexException){ &arrayIndex, index, size }; 72 57 } 73 58
Note:
See TracChangeset
for help on using the changeset viewer.