From 9f52b2c2834a3a7248784492a3ede3a8a9063f6a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 3 Dec 2017 22:28:54 +0000 Subject: Update demo.odin --- src/entity.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/entity.cpp') 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; } -- cgit v1.2.3