Debian Codegraph @

test cases/cmake/2 advanced/subprojects/cmMod/lib/cmMod.cpp

raw
1 #include "cmMod.hpp"
2 #include <zlib.h>
3 #include "config.h"
4
5 #if CONFIG_OPT != 42
6 #error "Invalid value of CONFIG_OPT"
7 #endif
8
9 #ifdef USE_FRAMEWORK
10 #include <CoreFoundation/CoreFoundation.h>
11 #endif
12
13 using namespace std;
14
15 cmModClass::cmModClass(string foo) {
16 str = foo + " World " + zlibVersion();
17
18 #ifdef USE_FRAMEWORK
19 CFStringRef ref = CFStringCreateWithCString(NULL, str.c_str(), kCFStringEncodingUTF8);
20 CFRelease(ref);
21 #endif
22 }
23
24 string cmModClass::getStr() const {
25 return str;
26 }