Generic macros
[QuantLib macros]


Detailed Description

Miscellaneous macros for compiler idiosyncrasies not fitting other categories.


Defines

#define QL_DUMMY_RETURN(x)
 Is a dummy return statement required?


Define Documentation

#define QL_DUMMY_RETURN (  ) 

Is a dummy return statement required?

Some compilers will issue a warning if it is missing even though it could never be reached during execution, e.g., after a block like

    if (condition)
        return validResult;
    else
        QL_FAIL("whatever the reason");
On the other hand, other compilers will issue a warning if it is present because it cannot be reached. For the code to be portable this macro should be used after the block.