| 300 | } |
| 301 | |
| 302 | qcomp util_getElemFromNestedPtrs(void* in, qindex* inds, int numInds) { |
| 303 | qindex ind = inds[0]; |
| 304 | |
| 305 | if (numInds == 1) |
| 306 | return ((qcomp*) in)[ind]; |
| 307 | |
| 308 | qcomp* ptr = ((qcomp**) in)[ind]; |
| 309 | return util_getElemFromNestedPtrs(ptr, &inds[1], numInds-1); // compiler may optimise tail-recursion |
| 310 | } |
| 311 | |
| 312 | |
| 313 |
no outgoing calls
no test coverage detected