diff options
Diffstat (limited to 'src/zeroscript/Env/js.zig')
| -rw-r--r-- | src/zeroscript/Env/js.zig | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/zeroscript/Env/js.zig b/src/zeroscript/Env/js.zig deleted file mode 100644 index c1ff85d..0000000 --- a/src/zeroscript/Env/js.zig +++ /dev/null @@ -1,22 +0,0 @@ -const std = @import("std"); -const Env = @import("root.zig"); - -pub extern "object_store" fn process( - [*]const Env.Call, - [*]const Env.Value, - [*]*Env.Value, - length: usize, -) void; - -export fn valueAllocString(value: *Env.Value, len: usize) [*]u8 { - const ptr: [*]u8 = @ptrCast(std.heap.wasm_allocator.alloc(u8, len) catch @panic("unable to allocate string")); - value.kind = .string; - value.value = .{ - .string = .{ - .ptr = ptr, - .len = len, - }, - }; - - return @constCast(value.value.string.ptr); -} |