C
<platform/error.h> Proxy Page
Macros
(since Qt Quick Ultralite (Platform) 3.0) | QUL_PLATFORM_ASSERT(expression) |
(since Qt Quick Ultralite (Platform) 3.0) | QUL_PLATFORM_DEBUG_ASSERT(expression) |
Macro Documentation
[since Qt Quick Ultralite (Platform) 3.0] QUL_PLATFORM_ASSERT(expression)
Evaluates a platform assertion.
Calls Qul::Platform::PlatformContext::error with the current line number and file location if the expression evaluates to false.
This macro is intended for platform-specific assertions in platform implementation code.
In debug builds, the full filename is passed to Qul::Platform::PlatformContext::error. In release builds, only the string "L" (Line) is passed.
Example:
QUL_PLATFORM_ASSERT(initDisplayInterface() == kStatus_Success);This macro was introduced in Qt Quick Ultralite (Platform) 3.0.
See also Qul::Platform::PlatformContext::error and QUL_PLATFORM_DEBUG_ASSERT.
[since Qt Quick Ultralite (Platform) 3.0] QUL_PLATFORM_DEBUG_ASSERT(expression)
Evaluates a platform assertion in debug builds only.
Calls Qul::Platform::PlatformContext::error with the current line number and file location if the expression evaluates to false.
Similar to QUL_PLATFORM_ASSERT, but only evaluates the assertion in debug builds. In release builds (NDEBUG defined), this macro compiles to a no-op.
This macro is useful for assertions that check conditions which are expensive to evaluate or are only relevant during development.
Example:
QUL_PLATFORM_DEBUG_ASSERT(bufferSize > 0 && bufferSize <= MAX_BUFFER_SIZE);This macro was introduced in Qt Quick Ultralite (Platform) 3.0.
See also Qul::Platform::PlatformContext::error and QUL_PLATFORM_ASSERT.
Available under certain Qt licenses.
Find out more.