CTryCatch
CTryCatch copied to clipboard
try macro may have undefined behavior
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).