aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h5
1 files changed, 4 insertions, 1 deletions
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,
@@ -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;