blob: fc42acda1b9a034d60c1fc1dd8e65a7da0815a62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
const builtin = @import("builtin");
const std = @import("std");
const wasm = wasm_struct: {
if (builtin.target.cpu.arch.isWasm()) {
break :wasm_struct struct {
pub const env = @import("env/root.zig");
pub const Env = @import("Env/root.zig");
export const bit_length: u8 = @sizeOf(usize);
};
}
break :wasm_struct struct {
pub const Env = struct {
pub const Object = struct {};
};
};
};
pub const env = wasm.env;
pub const Env = wasm.Env;
pub const App = @import("App/root.zig").App;
pub const allocator: std.mem.Allocator = if (builtin.target.cpu.arch.isWasm()) .{
.ptr = undefined,
.vtable = &std.heap.BrkAllocator.vtable,
} else .failing;
|