diff options
author | Itamar <itamar8910@gmail.com> | 2021-03-12 17:04:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-13 10:17:02 +0100 |
commit | 3658c4c567d4076614987a3ab74644df8d487fb0 (patch) | |
tree | 405db3786767576d46114b44f98052e2d72a8862 /Base/home | |
parent | f21af0922aee3c5fe028f84846beed973b07926f (diff) | |
download | serenity-3658c4c567d4076614987a3ab74644df8d487fb0.zip |
LibCpp: Replace defined preprocessor values when parsing
Diffstat (limited to 'Base/home')
-rw-r--r-- | Base/home/anon/Source/little/other.cpp | 1 | ||||
-rw-r--r-- | Base/home/anon/Source/little/other.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Base/home/anon/Source/little/other.cpp b/Base/home/anon/Source/little/other.cpp index 5ef3a12eb0..a35a49284a 100644 --- a/Base/home/anon/Source/little/other.cpp +++ b/Base/home/anon/Source/little/other.cpp @@ -5,6 +5,7 @@ int func() { int x = 1; int y = 2; + INT_Z = 3; StructInHeader mystruct; printf("x: %d\n", x); printf("y: %d\n", y); diff --git a/Base/home/anon/Source/little/other.h b/Base/home/anon/Source/little/other.h index dbc0f47901..54f64fd686 100644 --- a/Base/home/anon/Source/little/other.h +++ b/Base/home/anon/Source/little/other.h @@ -2,6 +2,8 @@ int func(); #define USE_VAR2 +#define INT_Z int z + struct StructInHeader { int var1; #ifdef USE_VAR2 |