diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-15 19:55:04 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-15 19:55:04 +0000 |
| commit | ac736aa4ecf5dce7b1dbd4c5ef3758f8f2008ebc (patch) | |
| tree | b7d30f39fb13723d33de2b0a5f4029873f25a205 /src/entity.c | |
| parent | 6fe25badf067d63c79999814f46be0ac79a39ef8 (diff) | |
Procedure overloading
Diffstat (limited to 'src/entity.c')
| -rw-r--r-- | src/entity.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/entity.c b/src/entity.c index a35c68d08..f4d48965f 100644 --- a/src/entity.c +++ b/src/entity.c @@ -37,6 +37,12 @@ typedef enum EntityFlag { EntityFlag_VectorElem = 1<<5, } EntityFlag; +typedef enum OverloadKind { + Overload_No = -1, + Overload_Unknown = 0, + Overload_Yes = +1, +} OverloadKind; + typedef struct Entity Entity; struct Entity { EntityKind kind; @@ -61,10 +67,11 @@ struct Entity { } Variable; i32 TypeName; struct { - bool is_foreign; - String foreign_name; - String link_name; - u64 tags; + bool is_foreign; + String foreign_name; + String link_name; + u64 tags; + OverloadKind overload_kind; } Procedure; struct { BuiltinProcId id; |