Macro to mark a method as not returning. Expands to the c++11 noreturn attribute if we're using c++11, otherwise to the GNU noreturn attribute if we're using gcc, otherwise expands to just the declaration. More...
Go to the source code of this file.
Defines | |
#define | ATH_HAS_NORETURN 0 |
#define | ATH_NORETURN(X) X |
Macro to mark a method as not returning. Expands to the c++11 noreturn attribute if we're using c++11, otherwise to the GNU noreturn attribute if we're using gcc, otherwise expands to just the declaration.
ATH_NORETURN (void func (int a, double b));
Be careful if the return type contains commas (in a template argument list) --- you may need a typedef in that case.