From ab55eee556ecbe6a8bd0a4f4cd92e38b021f6841 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 21 Apr 2025 16:50:40 -0400 Subject: Add `assert` --- src/ast.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index 2e1a035a..c628e38c 100644 --- a/src/ast.h +++ b/src/ast.h @@ -147,7 +147,7 @@ typedef enum { Extern, StructDef, EnumDef, LangDef, Index, FieldAccess, Optional, NonOptional, - DocTest, + DocTest, Assert, Use, InlineCCode, Deserialize, @@ -321,6 +321,9 @@ struct ast_s { ast_t *expr, *expected; bool skip_source:1; } DocTest; + struct { + ast_t *expr, *message; + } Assert; struct { ast_t *var; const char *path; -- cgit v1.2.3