The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

st/oxr: verify macro for time not zero args

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

+8
+8
src/xrt/state_trackers/oxr/oxr_api_verify.h
··· 355 355 } \ 356 356 } while (false) 357 357 358 + #define OXR_VERIFY_ARG_TIME_NOT_ZERO(log, xr_time) \ 359 + do { \ 360 + if (xr_time <= (XrTime)0) { \ 361 + return oxr_error(log, XR_ERROR_TIME_INVALID, "(time == %" PRIi64 ") is not a valid time.", \ 362 + xr_time); \ 363 + } \ 364 + } while (false) 365 + 358 366 359 367 /* 360 368 *