C Specification

// Provided by XR_VERSION_1_0
#define XR_FAILED(result) ((result) < 0)

Description

A convenience macro that can be used to test if a function has failed in some way. It evaluates to true for all failure codes.

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2025 The Khronos Group Inc.