Changeset 5db913f for libcfa/src/collections/array.hfa
- Timestamp:
- Dec 13, 2024, 12:10:39 PM (5 days ago)
- Branches:
- master
- Children:
- 13519718
- Parents:
- 63b32f9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/collections/array.hfa
r63b32f9d r5db913f 1 1 #pragma once 2 2 3 //#include <assert.h>4 3 5 4 … … 9 8 10 9 #ifdef __CFA_DEBUG__ 10 // FIXME: `len` printing format %ld is a workaround for #269; once fixed, it should be %zd 11 11 #define subcheck( arr, sub, len ) \ 12 12 if ( (sub) < 0 || (sub) >= (len) ) \ 13 abort( " subscript %ld exceeds dimension range [0,%zd) for array %p.\n", \13 abort( "Subscript %ld exceeds dimension range [0,%ld) for array %p.\n", \ 14 14 (sub), (len), (arr) ) 15 15 #define subchecku( arr, sub, len ) \ 16 16 if ( (sub) >= (len) ) \ 17 abort( " subscript %ld exceeds dimension range [0,%zd) for array %p.\n", \17 abort( "Subscript %ld exceeds dimension range [0,%ld) for array %p.\n", \ 18 18 (sub), (len), (arr) ) 19 19 #else
Note: See TracChangeset
for help on using the changeset viewer.