diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-03 15:19:45 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-03 15:19:45 -0400 |
commit | 9661c9839d6635181b81e0a1061dfa566f7660fe (patch) | |
tree | c9298875e57c08985f376af36bf346bb048befbd /types.c | |
parent | 3fcabe8edbe4213ab1d5a65c584ee332c1b26baf (diff) |
trying to make std/*.toc portable, fwrite not working for some reason
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1468,6 +1468,9 @@ static Value get_builtin_val(BuiltinVal val) { case BUILTIN_COMPILING: v.boolv = true; break; + case BUILTIN_PLATFORM: + v.i64 = platform__; + break; } return v; } @@ -1489,6 +1492,10 @@ static void get_builtin_val_type(Allocator *a, BuiltinVal val, Type *t) { t->kind = TYPE_BUILTIN; t->builtin = BUILTIN_BOOL; break; + case BUILTIN_PLATFORM: + t->kind = TYPE_BUILTIN; + t->builtin = BUILTIN_I64; + break; } } |