Go to the documentation of this file. 18 #define OXR_TWO_CALL_HELPER(log, cnt_input, cnt_output, output, count, data, \ 21 if (cnt_output == NULL) { \ 22 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \ 25 *cnt_output = count; \ 27 if (cnt_input == 0) { \ 30 if (cnt_input < count) { \ 31 return oxr_error(log, XR_ERROR_SIZE_INSUFFICIENT, \ 34 for (uint32_t i = 0; i < count; i++) { \ 35 (output)[i] = (data)[i]; \ 41 #define OXR_TWO_CALL_FILL_IN_HELPER(log, cnt_input, cnt_output, \ 42 output_structs, count, fill_fn, \ 43 source_structs, sval) \ 45 if (cnt_output == NULL) { \ 46 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \ 49 *cnt_output = count; \ 51 if (cnt_input == 0) { \ 54 if (cnt_input < count) { \ 55 return oxr_error(log, XR_ERROR_SIZE_INSUFFICIENT, \ 58 for (uint32_t i = 0; i < count; i++) { \ 59 fill_fn(&output_structs[i], &source_structs[i]); \