From 398d2cab6988e20c59e7037ff7ef551540339abb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 5 Oct 2025 17:52:33 -0400 Subject: Fix a bunch of issues with optional types --- src/compile/headers.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compile/headers.c') diff --git a/src/compile/headers.c b/src/compile/headers.c index bc0156ad..f132b312 100644 --- a/src/compile/headers.c +++ b/src/compile/headers.c @@ -106,6 +106,8 @@ static void _make_typedefs(compile_typedef_info_t *info, ast_t *ast) { DeclareMatch(def, ast, LangDef); *info->header = Texts(*info->header, "typedef Text_t ", namespace_name(info->env, info->env->namespace, Texts(def->name, "$$type")), ";\n"); + *info->header = Texts(*info->header, "typedef Text_t ", "Optional", + namespace_name(info->env, info->env->namespace, Texts(def->name, "$$type")), ";\n"); } } -- cgit v1.2.3