core: fix build with Null backend
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4c8fbb2bf0
commit
c2767b4e01
2 changed files with 5 additions and 3 deletions
|
|
@ -261,7 +261,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
.install_subdir = "docs",
|
.install_subdir = "docs",
|
||||||
});
|
});
|
||||||
const docs_step = b.step("docs", "Generate docs");
|
const docs_step = b.step("docs", "Generate docs");
|
||||||
docs_step.dependOn(&install_docs.step);
|
docs_step.dependOn(&install_docs.step);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ pub const supports_non_blocking = switch (build_options.core_platform) {
|
||||||
.win32 => true,
|
.win32 => true,
|
||||||
.wasm => false,
|
.wasm => false,
|
||||||
.darwin => false,
|
.darwin => false,
|
||||||
.null => false,
|
.null => true,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Set this to true if you intend to drive the main loop yourself.
|
/// Set this to true if you intend to drive the main loop yourself.
|
||||||
|
|
@ -349,7 +349,9 @@ pub fn start(core: *Mod) !void {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dispatch(stack_space: []u8) void {
|
fn dispatch(stack_space: []u8) void {
|
||||||
mach.mods.dispatchUntil(stack_space, .mach_core, .frame_finished) catch { @panic("Dispatch in Core failed"); };
|
mach.mods.dispatchUntil(stack_space, .mach_core, .frame_finished) catch {
|
||||||
|
@panic("Dispatch in Core failed");
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
fn platform_update_callback(core: *Mod, stack_space: []u8) !bool {
|
fn platform_update_callback(core: *Mod, stack_space: []u8) !bool {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue