Updated the source for master
This commit is contained in:
parent
2fe3d6cb3f
commit
e7e0927a83
7 changed files with 30 additions and 23 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const ecs = @import("ecs");
|
||||
const std = @import("std");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
pub usingnamespace @cImport({
|
||||
pub const c = @cImport({
|
||||
@cDefine("GLFW_INCLUDE_NONE", {});
|
||||
@cInclude("vulkan/vulkan.h");
|
||||
@cInclude("GLFW/glfw3.h");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue