summaryrefslogtreecommitdiff
path: root/Base/home
diff options
context:
space:
mode:
Diffstat (limited to 'Base/home')
-rw-r--r--Base/home/anon/Source/little/other.cpp5
-rw-r--r--Base/home/anon/Source/little/other.h11
2 files changed, 14 insertions, 2 deletions
diff --git a/Base/home/anon/Source/little/other.cpp b/Base/home/anon/Source/little/other.cpp
index 69d7173c9f..5ef3a12eb0 100644
--- a/Base/home/anon/Source/little/other.cpp
+++ b/Base/home/anon/Source/little/other.cpp
@@ -1,12 +1,13 @@
-#include <stdio.h>
#include "other.h"
+#include <stdio.h>
int func()
{
int x = 1;
int y = 2;
+ StructInHeader mystruct;
printf("x: %d\n", x);
printf("y: %d\n", y);
- printf("x+y: %d\n", x+y);
+ printf("x+y: %d\n", x + y);
return x + y;
}
diff --git a/Base/home/anon/Source/little/other.h b/Base/home/anon/Source/little/other.h
index 45588fbf88..dbc0f47901 100644
--- a/Base/home/anon/Source/little/other.h
+++ b/Base/home/anon/Source/little/other.h
@@ -1 +1,12 @@
int func();
+
+#define USE_VAR2
+
+struct StructInHeader {
+ int var1;
+#ifdef USE_VAR2
+ int var2;
+#else
+ int var3;
+#endif
+};