mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibCpp: Replace defined preprocessor values when parsing
This commit is contained in:
parent
f21af0922a
commit
3658c4c567
Notes:
sideshowbarker
2024-07-18 21:26:09 +09:00
Author: https://github.com/itamar8910
Commit: 3658c4c567
Pull-request: https://github.com/SerenityOS/serenity/pull/5755
8 changed files with 134 additions and 44 deletions
|
@ -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);
|
||||
|
|
|
@ -2,6 +2,8 @@ int func();
|
|||
|
||||
#define USE_VAR2
|
||||
|
||||
#define INT_Z int z
|
||||
|
||||
struct StructInHeader {
|
||||
int var1;
|
||||
#ifdef USE_VAR2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue