mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
update zig to compile on nightly
This commit is contained in:
parent
784f9a097c
commit
9903e14cd3
4 changed files with 29 additions and 24 deletions
|
@ -45,7 +45,7 @@ fn testing_roc_dealloc(c_ptr: *c_void, _: u32) callconv(.C) void {
|
|||
std.testing.allocator.destroy(ptr);
|
||||
}
|
||||
|
||||
fn testing_roc_panic(c_ptr: *c_void, _: u32) callconv(.C) void {
|
||||
fn testing_roc_panic(_: *c_void, _: u32) callconv(.C) void {
|
||||
@panic("Roc paniced");
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,9 @@ pub fn panic(c_ptr: *c_void, alignment: u32) callconv(.C) void {
|
|||
// indirection because otherwise zig creats an alias to the panic function which our LLVM code
|
||||
// does not know how to deal with
|
||||
pub fn test_panic(c_ptr: *c_void, alignment: u32) callconv(.C) void {
|
||||
const cstr = @ptrCast([*:0]u8, c_ptr);
|
||||
_ = c_ptr;
|
||||
_ = alignment;
|
||||
// const cstr = @ptrCast([*:0]u8, c_ptr);
|
||||
|
||||
// const stderr = std.io.getStdErr().writer();
|
||||
// stderr.print("Roc panicked: {s}!\n", .{cstr}) catch unreachable;
|
||||
|
@ -226,7 +228,7 @@ pub const RocResult = extern struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const Ordering = packed enum(u8) {
|
||||
pub const Ordering = enum(u8) {
|
||||
EQ = 0,
|
||||
GT = 1,
|
||||
LT = 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue