diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 16:50:40 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 16:50:40 -0400 |
| commit | ab55eee556ecbe6a8bd0a4f4cd92e38b021f6841 (patch) | |
| tree | 47c339c48c9aaeffb931588c1b6241d35690c5a2 /src/ast.h | |
| parent | f2eab0d205d1a60e9ce7a8e2420196e12d7eed10 (diff) | |
Add `assert`
Diffstat (limited to 'src/ast.h')
| -rw-r--r-- | src/ast.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -147,7 +147,7 @@ typedef enum { Extern, StructDef, EnumDef, LangDef, Index, FieldAccess, Optional, NonOptional, - DocTest, + DocTest, Assert, Use, InlineCCode, Deserialize, @@ -322,6 +322,9 @@ struct ast_s { bool skip_source:1; } DocTest; struct { + ast_t *expr, *message; + } Assert; + struct { ast_t *var; const char *path; enum { USE_LOCAL, USE_MODULE, USE_SHARED_OBJECT, USE_HEADER, USE_C_CODE, USE_ASM } what; |
