Skip to content

try macro may have undefined behavior #6

@brvtalcake

Description

@brvtalcake

In CTryCatch.h, the line in the try macro ...

if(!(CTRYCATCH_NAME(exception_type) = setjmp(CTRYCATCH_NAME(exception_env))))

... may cause undefined behavior, since setjmp's return value can not be used to initialize a variable (see cppreference for more details).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions