Skip to content

Program logic within assert statements #465

@kubagalecki

Description

@kubagalecki

See e.g.:

#define CudaMalloc(a__,b__) assert( (*((void**)(a__)) = malloc(b__)) != NULL )

Program logic should not depend on the contents of assert statements, since they will be #ifdefed out in a release (-DNDEBUG) build. This happens in multiple places in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions