Changeset 329c62f for tests/exceptions/message.cfa
- Timestamp:
- Jan 9, 2025, 1:13:21 PM (11 days ago)
- Branches:
- master
- Children:
- d6c59bce
- Parents:
- 454aab2 (diff), 5a894e12 (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/message.cfa
r454aab2 r329c62f 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 44 59 void ^?{}(BadIndexException & this) { 45 60 free(this.message); … … 54 69 // This is not supposed to be a real range check, but that's the idea: 55 70 void failRangeCheck(int index, int size) { 56 throw (BadIndexException){ &arrayIndex, index, size };71 throw (BadIndexException){ arrayIndex, index, size }; 57 72 } 58 73
Note: See TracChangeset
for help on using the changeset viewer.