boinc/lib/mac/QBacktrace.c
// Because QBTContextIsValid is only referenced by assert macros, and these 
// are disabled by NDEBUG, we have to conditionalise this code based on 
// NDEBUG lest we get a "defined but not used" warning.
Because QBTContextIsValid is only referenced by assert macros, and these
are disabled by NDEBUG, we have to conditionalise this code based on
NDEBUG lest we get a "defined but not used" warning.
Because QBTContextIsValid is only referenced by assert macros and these are disabled by NDEBUG we have to conditionalise this code based on NDEBUG lest we get a " defined but not used " warning .
static bool QBTContextIsValid(const QBTContext *context)
    {
        return (context != NULL)
            && (context->arch != NULL)
            && (context->task != MACH_PORT_NULL)
            && (context->symRef != NULL)
            && ( (context->threadState == NULL) == (context->threadStateSize == 0) )
            && (context->readBytes != NULL)
            && (context->sigTrampLowerBound != 0)
            && (context->sigTrampLowerBound < context->sigTrampUpperBound)
            && (context->stackBottom <= context->stackTop)
            && ((context->frameArrayCount == 0) || (context->frameArray != NULL));
    }
static bool QBTContextIsValid ( const QBTContext * context ) { return ( context != NULL ) && ( context -> arch != NULL ) && ( context -> task != MACH_PORT_NULL ) && ( context -> symRef != NULL ) && ( ( context -> threadState == NULL ) == ( context -> threadStateSize == 0 ) ) && ( context -> readBytes != NULL ) && ( context -> sigTrampLowerBound != 0 ) && ( context -> sigTrampLowerBound < context -> sigTrampUpperBound ) && ( context -> stackBottom <= context -> stackTop ) && ( ( context -> frameArrayCount == 0 ) || ( context -> frameArray != NULL ) ) ; }
Because QBTContextIsValid is only referenced by assert macros, and these
are disabled by NDEBUG, we have to conditionalise this code based on
NDEBUG lest we get a "defined but not used" warning.
Because QBTContextIsValid is only referenced by assert macros and these are disabled by NDEBUG we have to conditionalise this code based on NDEBUG lest we get a " defined but not used " warning .