diff options
| author | gingerBill <bill@gingerbill.org> | 2017-12-03 22:28:54 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-12-03 22:28:54 +0000 |
| commit | 9f52b2c2834a3a7248784492a3ede3a8a9063f6a (patch) | |
| tree | 24a356de9aa52103c0a363c6ca50db142dc36227 /src/entity.cpp | |
| parent | 8035a407a6838b1bc3fa1b4c09281c5918cb6bc2 (diff) | |
Update demo.odin
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 00993d407..940288957 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -200,11 +200,13 @@ Entity *make_entity_type_name(gbAllocator a, Scope *scope, Token token, Type *ty return entity; } -Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type, bool is_using, bool is_immutable) { +Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type, bool is_using, bool is_value) { + bool is_immutable = false; Entity *entity = make_entity_variable(a, scope, token, type, is_immutable); entity->flags |= EntityFlag_Used; - if (is_using) entity->flags |= EntityFlag_Using; entity->flags |= EntityFlag_Param; + if (is_using) entity->flags |= EntityFlag_Using; + if (is_value) entity->flags |= EntityFlag_Value; return entity; } |