The open source OpenXR runtime

st/oxr: fix OXR_CHECK_XRET macro

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2612>

authored by

Andrei Aristarkhov and committed by
Jakob Bornecrantz
5e19fa57 e3e1d338

+2 -2
+2 -2
src/xrt/state_trackers/oxr/oxr_xret.h
··· 24 24 xrt_result_t check_ret = (RESULTS); \ 25 25 if (check_ret == XRT_ERROR_IPC_FAILURE) { \ 26 26 (SESS)->has_lost = true; \ 27 - return oxr_error(LOG, XR_ERROR_INSTANCE_LOST, "Call to " #FUNCTION " failed"); \ 27 + return oxr_error((LOG), XR_ERROR_INSTANCE_LOST, "Call to " #FUNCTION " failed"); \ 28 28 } \ 29 29 if (check_ret != XRT_SUCCESS) { \ 30 - return oxr_error(LOG, XR_ERROR_RUNTIME_FAILURE, "Call to " #FUNCTION " failed"); \ 30 + return oxr_error((LOG), XR_ERROR_RUNTIME_FAILURE, "Call to " #FUNCTION " failed"); \ 31 31 } \ 32 32 } while (false) 33 33