all: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
5466375f40
commit
1356cdd838
2 changed files with 5 additions and 5 deletions
|
|
@ -87,4 +87,4 @@ test "get index name" {
|
||||||
var buf: [32]u8 = undefined;
|
var buf: [32]u8 = undefined;
|
||||||
try face.getGlyphName(1120, &buf);
|
try face.getGlyphName(1120, &buf);
|
||||||
try testing.expectEqualStrings(std.mem.sliceTo(&buf, 0), "summation");
|
try testing.expectEqualStrings(std.mem.sliceTo(&buf, 0), "summation");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@ const native = @import("native.zig");
|
||||||
pub const App = @This();
|
pub const App = @This();
|
||||||
|
|
||||||
// Dummy init, deinit, and update functions
|
// Dummy init, deinit, and update functions
|
||||||
pub fn init(_: *App, _: *Core) !void { }
|
pub fn init(_: *App, _: *Core) !void {}
|
||||||
|
|
||||||
pub fn deinit(_: *App, _: *Core) void { }
|
pub fn deinit(_: *App, _: *Core) void {}
|
||||||
|
|
||||||
pub fn update(_: *App, _: *Core) !void { }
|
pub fn update(_: *App, _: *Core) !void {}
|
||||||
|
|
||||||
// Current Limitations:
|
// Current Limitations:
|
||||||
// 1. Currently, ecs seems to be using some weird compile-time type trickery, so I'm not exactly sure how
|
// 1. Currently, ecs seems to be using some weird compile-time type trickery, so I'm not exactly sure how
|
||||||
|
|
@ -55,7 +55,7 @@ pub export fn mach_core_update(core: *Core, resize: ?native.CoreResizeCallback)
|
||||||
return MachStatus.Success;
|
return MachStatus.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
const MachStatus = enum(c_int) {
|
const MachStatus = enum(c_int) {
|
||||||
Success = 0x00000000,
|
Success = 0x00000000,
|
||||||
Error = 0x00000001,
|
Error = 0x00000001,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue