diff options
| author | gingerBill <bill@gingerbill.org> | 2020-03-12 22:33:49 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-03-12 22:33:49 +0000 |
| commit | da283d5a7fb531427e74cb6003f451cb9b15f0ca (patch) | |
| tree | acfccde3afe4da22c92ea5fec43d5c866d53aea6 /src/entity.cpp | |
| parent | 2a2d3273eae791c5c21eb77374f4818c2a76ae1b (diff) | |
Add `byval`
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index b89522b07..9cc77360e 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -43,14 +43,15 @@ enum EntityFlag { EntityFlag_TypeField = 1<<9, EntityFlag_Value = 1<<10, EntityFlag_Sret = 1<<11, - EntityFlag_BitFieldValue = 1<<12, - EntityFlag_PolyConst = 1<<13, - EntityFlag_NotExported = 1<<14, - EntityFlag_ConstInput = 1<<15, + EntityFlag_ByVal = 1<<12, + EntityFlag_BitFieldValue = 1<<13, + EntityFlag_PolyConst = 1<<14, + EntityFlag_NotExported = 1<<15, + EntityFlag_ConstInput = 1<<16, - EntityFlag_Static = 1<<16, + EntityFlag_Static = 1<<17, - EntityFlag_ImplicitReference = 1<<17, // NOTE(bill): equivalent to `const &` in C++ + EntityFlag_ImplicitReference = 1<<18, // NOTE(bill): equivalent to `const &` in C++ EntityFlag_SoaPtrField = 1<<19, // to allow s.x[0] where `s.x` is a pointer rather than a slice |