Removed define for declaring ct vars and replaced it with var for declarations. Updated error messages. Added $defined.

This commit is contained in:
Christoffer Lerno
2021-08-30 17:28:34 +02:00
committed by Christoffer Lerno
parent 6e386538dc
commit 69d9775876
47 changed files with 760 additions and 539 deletions

View File

@@ -38,14 +38,14 @@ union Foob
short y = $offsetof("Bob.y");
int z = $offsetof("Bob.y");
int w = $offsetof(Bob, y);
int w = $offsetof(Bob.y);
int x1 = $offsetof("Ex.c[3]");
int x2 = $offsetof("Ex", y[1]);
int x2 = $offsetof("Ex.y[1]");
int x4 = $offsetof("Ar.br[1]");
int x6 = $offsetof(Ar, "br[1].x");
int x5 = $offsetof("Ar", "br[1]");
int x7 = $offsetof("Ar", br[2].x);
int x8 = $offsetof(Ar, br[2]);
int x6 = $offsetof(Ar.br[1].x);
int x5 = $offsetof(Ar.br[1]);
int x7 = $offsetof("Ar.br[2].x");
int x8 = $offsetof(Ar.br[2]);
int z0 = $offsetof("Foob.c");
int z00 = $offsetof("Foob.c[0]");
int z01 = $offsetof("Foob.c[1]");