diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 16:00:59 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 16:00:59 +0100 |
| commit | 8dd8f96b24710dc4f2d29065928244a40a432379 (patch) | |
| tree | 192fcdbef2373a983673e929835bff64ad8edb48 /src/zilch/app/root.zig | |
| parent | feeedb0bf31314b182e7bbc135182f6e0bc859b2 (diff) | |
zilch: update App structure and split-up document and wasm logic
Diffstat (limited to 'src/zilch/app/root.zig')
| -rw-r--r-- | src/zilch/app/root.zig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/zilch/app/root.zig b/src/zilch/app/root.zig new file mode 100644 index 0000000..b2a8863 --- /dev/null +++ b/src/zilch/app/root.zig @@ -0,0 +1,15 @@ +const builtin = @import("builtin"); +const std = @import("std"); + +const wasm = @import("root.wasm.zig"); +const document = @import("root.document.zig"); + +pub const Options = @import("Options.zig"); + +pub fn App(comptime options: Options) type { + if (builtin.target.cpu.arch.isWasm()) { + return wasm.App(options); + } else { + return document.App(options); + } +} |