SUNphi  1.0
SwallowSemicolon.hpp File Reference

Macro to swallow a semicolon after a macro. More...

Go to the source code of this file.

Macros

#define SWALLOW_SEMICOLON_AT_GLOBAL_SCOPE
 

Detailed Description

Macro to swallow a semicolon after a macro.

Definition in file SwallowSemicolon.hpp.

Macro Definition Documentation

#define SWALLOW_SEMICOLON_AT_GLOBAL_SCOPE
Value:
\
void neverInstantiatedFunction()

Eat a dangling semicolon at global scope

Example:

1 #define DEFINE_FOOER(TYPE,NAME) \
2 TYPE NAME() \
3 { \
4 doing something... \
5 } \
6 SWALLOW_SEMICOLON_AT_GLOBAL_SCOPE
7 
8 DEFINE_FOER(int,ciccio);

Definition at line 26 of file SwallowSemicolon.hpp.