Debian Codegraph @

test cases/cmake/19 advanced options/subprojects/cmOpts/cmTest.cpp

raw
1 #include "cmTest.hpp"
2
3 #if __cplusplus < 201103L
4 #error "At least C++11 is required"
5 #endif
6
7 #if __cplusplus >= 201402L
8 #error "At most C++11 is required"
9 #endif
10
11 #ifndef MESON_GLOBAL_FLAG
12 #error "MESON_GLOBAL_FLAG was not set"
13 #endif
14
15 #ifdef MESON_SPECIAL_FLAG1
16 #error "MESON_SPECIAL_FLAG1 *was* set"
17 #endif
18
19 #ifdef MESON_SPECIAL_FLAG2
20 #error "MESON_SPECIAL_FLAG2 *was* set"
21 #endif
22
23 int getTestInt() {
24 return MESON_MAGIC_INT;
25 }