Compiling euler code with only link errors

This commit is contained in:
Krzosa Karol
2022-06-12 00:22:07 +02:00
parent 83130b130b
commit 4d6a8efd06
2 changed files with 8 additions and 5 deletions

View File

@@ -273,7 +273,7 @@ gen_ast(Ast *ast){
CASE(VAR, Decl){
gen_var(node->name, node->type, node->expr, is_inside_struct ? DONT_EMIT_VALUE : ALWAYS_EMIT_VALUE);
gen(";");
if(!is_flag_set(ast->flags, AST_EXPR)) gen(";");
BREAK();
}
@@ -477,7 +477,7 @@ compile_files(Array<String> filename){
resolve_package(it);
}
#if 0
#if 1
gen(R"==(
#include <stdint.h>
#include <stdio.h>