sources/basics.h

changeset 192
94c67ae846fc
parent 191
2e6cbacafdc7
equal deleted inserted replaced
191:2e6cbacafdc7 192:94c67ae846fc
123 constexpr std::size_t countof(T(&)[N]) 123 constexpr std::size_t countof(T(&)[N])
124 { 124 {
125 return N; 125 return N;
126 } 126 }
127 127
128 struct Exitception {};
129
130 #ifdef __GNUC__ 128 #ifdef __GNUC__
131 # define GNUATTRIBUTE(X) __attribute__(X) 129 # define GNUATTRIBUTE(X) __attribute__(X)
132 #else 130 #else
133 # define GNUATTRIBUTE(X) 131 # define GNUATTRIBUTE(X)
134 #endif 132 #endif

mercurial