Debian Codegraph @

test cases/cmake/10 header only/subprojects/cmMod/include/cmMod.hpp

raw
1 #pragma once
2
3 #include <string>
4
5 #ifndef CMAKE_FLAG_MUST_BE_PRESENT
6 #error "The flag CMAKE_FLAG_MUST_BE_PRESENT was not set"
7 #endif
8
9 #define xstr(s) str(s)
10 #define str(s) #s
11
12 class cmModClass {
13 private:
14 std::string str;
15 public:
16 cmModClass(std::string foo) {
17 str = foo + " World ";
18 str += CMAKE_COMPILER_DEFINE_STR;
19 str += ' ';
20 str += xstr(MESON_MAGIC_FLAG);
21 }
22
23 inline std::string getStr() const { return str; }
24 };