From c5ef5279d4346fe1b38815060303b17159adbc82 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 15 Jun 2017 14:42:08 +0100 Subject: Add foreign variables --- src/entity.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/entity.cpp') diff --git a/src/entity.cpp b/src/entity.cpp index 44464b49c..d6703f5b7 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -84,10 +84,13 @@ struct Entity { struct { i32 field_index; i32 field_src_index; - bool is_immutable; - bool is_thread_local; ExactValue default_value; bool default_is_nil; + bool is_immutable; + bool is_thread_local; + bool is_foreign; + Entity * foreign_library; + AstNode * foreign_library_ident; } Variable; struct { bool is_type_alias; -- cgit v1.2.3