From da283d5a7fb531427e74cb6003f451cb9b15f0ca Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 12 Mar 2020 22:33:49 +0000 Subject: Add `byval` --- src/entity.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/entity.cpp') 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 -- cgit v1.2.3