summaryrefslogtreecommitdiff
path: root/examples/helloworld-complex/src/main.cpp
blob: 2b4313eafe540f23964bb1b68271b0ad0b69630e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "foo.h"

#ifdef HAS_SPECIAL_FEATURE
#include "specialfeature.h"
#endif

#include <stdio.h>

#ifndef HAVE_MAIN_CPP
#   error missing define HAVE_MAIN_CPP
#endif

#ifndef SOMETHING
#   error missing define SOMETHING
#endif

int main()
{
    someUsefulFunction();
#ifdef _DEBUG
    puts("Hello World! (debug version)");
#else
    puts("Hello World! (release version)");
#endif
#ifdef HAS_SPECIAL_FEATURE
    bragAboutSpecialFeature();
#endif
}