diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-16 22:30:48 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-16 22:30:48 +0100 |
| commit | 187b186112f88b883a6366f7cd1b4a1ef32d3232 (patch) | |
| tree | c10f1d8af8a0bdfa22941aac7bf67fa168a83f0b /src/parser.c | |
| parent | 5041a35b95e4e911697b464d6f20f99aef7a598b (diff) | |
Add `#require_results` for procedures
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c index c3005ddb7..31d14db78 100644 --- a/src/parser.c +++ b/src/parser.c @@ -65,6 +65,8 @@ typedef enum ProcTag { ProcTag_bounds_check = 1<<0, ProcTag_no_bounds_check = 1<<1, + ProcTag_require_results = 1<<4, + ProcTag_foreign = 1<<10, ProcTag_export = 1<<11, ProcTag_link_name = 1<<12, @@ -1570,6 +1572,7 @@ void parse_proc_tags(AstFile *f, u64 *tags, AstNode **foreign_library_token, Str expect_token(f, Token_String); } } + ELSE_IF_ADD_TAG(require_results) ELSE_IF_ADD_TAG(export) ELSE_IF_ADD_TAG(bounds_check) ELSE_IF_ADD_TAG(no_bounds_check) |