Changeset 1f6623c for libcfa/src
- Timestamp:
- Jan 6, 2025, 4:18:42 PM (2 weeks ago)
- Branches:
- master
- Children:
- 7d30a1e
- Parents:
- 58eb9250
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/collections/array.hfa
r58eb9250 r1f6623c 8 8 9 9 #ifdef __CFA_DEBUG__ 10 // FIXME: `len` printing format %ld is a workaround for #269; once fixed, it should be %zd11 10 #define subcheck( arr, sub, len ) \ 12 11 if ( (sub) < 0 || (sub) >= (len) ) \ 13 abort( "Subscript %ld exceeds dimension range [0,% ld) for array %p.\n", \12 abort( "Subscript %ld exceeds dimension range [0,%zu) for array %p.\n", \ 14 13 (sub), (len), (arr) ) 15 14 #define subchecku( arr, sub, len ) \ 16 15 if ( (sub) >= (len) ) \ 17 abort( "Subscript %ld exceeds dimension range [0,% ld) for array %p.\n", \16 abort( "Subscript %ld exceeds dimension range [0,%zu) for array %p.\n", \ 18 17 (sub), (len), (arr) ) 19 18 #else
Note: See TracChangeset
for help on using the changeset viewer.