1Generic macros(3) QuantLib Generic macros(3)
2
3
4
6 Generic macros -
7
9 Miscellaneous macros for compiler idiosyncrasies not fitting other
10 categories.
11
12 Defines
13 #define QL_DUMMY_RETURN(x)
14 Is a dummy return statement required?
15
17 #define QL_DUMMY_RETURN(x)
18 Is a dummy return statement required?
19
20 Some compilers will issue a warning if it is missing even though it
21 could never be reached during execution, e.g., after a block like
22
23 if (condition)
24 return validResult;
25 else
26 QL_FAIL('whatever the reason');
27
28
29 On the other hand, other compilers will issue a warning if it is
30 present because it cannot be reached. For the code to be portable this
31 macro should be used after the block.
32
33
34
35Version 0.8.1 29 Oct 2007 Generic macros(3)