Updated the source for master

This commit is contained in:
Lorenzo Torres 2025-08-01 21:38:27 +02:00
parent 2fe3d6cb3f
commit e7e0927a83
7 changed files with 30 additions and 23 deletions

View file

@ -490,8 +490,8 @@ fn parseCode(self: *Parser) !Func {
}
const ir = try IR.parse(self);
const stdout = std.io.getStdOut().writer();
try ir.print(stdout);
// const stdout = std.fs.File.stdout().writer();
// try ir.print(stdout);
const func = Func{
.locals = try self.allocator.alloc(vm.Valtype, local_count),

View file

@ -120,7 +120,7 @@ pub const Runtime = struct {
// Like this
.@"unreachable" => {
std.log.err("Reached unreachable statement at IR counter {any}\n", .{frame.program_counter});
frame.code.print(std.io.getStdOut().writer()) catch {};
//frame.code.print(std.io.getStdOut().writer()) catch {};
},
.nop => {},
.br => {

View file

@ -1,4 +1,4 @@
const c = @import("c.zig");
const c = @import("c.zig").c;
const std = @import("std");
const vk = @import("vulkan.zig");
const gltf = @import("gltf.zig");

View file

@ -1,4 +1,4 @@
const c = @import("c.zig");
const c = @import("c.zig").c;
const ecs = @import("ecs");
const std = @import("std");

View file

@ -1,4 +1,4 @@
pub usingnamespace @cImport({
pub const c = @cImport({
@cDefine("GLFW_INCLUDE_NONE", {});
@cInclude("vulkan/vulkan.h");
@cInclude("GLFW/glfw3.h");

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig");
const c = @import("c.zig").c;
const Window = @import("Window.zig");
const Mesh = @import("Mesh.zig");
const sideros = @import("sideros");