LibCpp: Replace defined preprocessor values when parsing

This commit is contained in:
Itamar 2021-03-12 17:04:08 +02:00 committed by Andreas Kling
commit 3658c4c567
Notes: sideshowbarker 2024-07-18 21:26:09 +09:00
8 changed files with 134 additions and 44 deletions

View file

@ -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);

View file

@ -2,6 +2,8 @@ int func();
#define USE_VAR2
#define INT_Z int z
struct StructInHeader {
int var1;
#ifdef USE_VAR2