SUNphi  1.0
SwallowSemicolon.hpp
Go to the documentation of this file.
1 #ifndef _SWALLOWSEMICOLON_HPP
2 #define _SWALLOWSEMICOLON_HPP
3 
4 /// \file SwallowSemicolon.hpp
5 ///
6 /// \brief Macro to swallow a semicolon after a macro
7 
8 namespace SUNphi
9 {
10  /*! Eat a dangling semicolon at global scope
11 
12  Example:
13 
14  \code
15  #define DEFINE_FOOER(TYPE,NAME) \
16  TYPE NAME() \
17  { \
18  doing something... \
19  } \
20  SWALLOW_SEMICOLON_AT_GLOBAL_SCOPE
21 
22  DEFINE_FOER(int,ciccio);
23 
24  \endcode
25  */
26 #define SWALLOW_SEMICOLON_AT_GLOBAL_SCOPE
27  /*! Forward definition of a never instantiated expression */
28  void neverInstantiatedFunction()
29 }
30 
31 #endif