| 1136 | } |
| 1137 | |
| 1138 | void das_array_reserve ( das_context * context, das_array * arr, uint32_t capacity, uint32_t stride ) { |
| 1139 | // Same guard as das_array_clear: stride==0 with non-zero capacity reaches |
| 1140 | // Context::reallocate(_, _, 0) which fires DAS_VERIFYF in MemoryModel. |
| 1141 | if ( capacity && !stride ) { |
| 1142 | ((Context *)context)->throw_error("das_array_reserve: stride must be non-zero when capacity > 0"); |
| 1143 | return; |
| 1144 | } |
| 1145 | array_reserve(*(Context *)context, *(Array *)arr, capacity, stride, nullptr); |
| 1146 | } |
| 1147 | |
| 1148 | void das_array_reserve_i64 ( das_context * context, das_array * arr, uint64_t capacity, uint32_t stride ) { |
| 1149 | if ( capacity && !stride ) { |
nothing calls this directly
no test coverage detected