CORONA_VERIFY()

Revision Release 2022.3683
Keywords iOS, Solar2D Native, C, CoronaAssert.h, CORONA_VERIFY
See also CoronaAssert.h
CORONA_ASSERT()
Corona C Functions

Overview

Similar to CORONA_ASSERT() except that when assertions are disabled (for example CORONA_DEBUG is not defined), the value of cond is evaluated and available for use in logical expressions. This is useful where you want to gracefully handle failures at runtime, but want to trap them during normal development.

void *p = ...
if ( CORONA_ASSERT( p ) )
{
    // Do something
}

Syntax

CORONA_VERIFY( cond )