From 7e275af628ea2217b78c5c0cf12864728a6fc2b4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 21 May 2024 20:54:09 -0400 Subject: Get rid of struct constructor --- structs.c | 1 - 1 file changed, 1 deletion(-) (limited to 'structs.c') diff --git a/structs.c b/structs.c index d62d2df2..57b53550 100644 --- a/structs.c +++ b/structs.c @@ -116,7 +116,6 @@ void compile_struct_def(env_t *env, ast_t *ast) auto def = Match(ast, StructDef); CORD full_name = CORD_cat(env->file_prefix, def->name); CORD_appendf(&env->code->typedefs, "typedef struct %r_s %r_t;\n", full_name, full_name); - CORD_appendf(&env->code->typedefs, "#define %r(...) ((%r_t){__VA_ARGS__})\n", full_name, full_name); CORD struct_code = CORD_all("struct ", full_name, "_s {\n"); for (arg_ast_t *field = def->fields; field; field = field->next) { -- cgit v1.2.3