aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-05-31 21:11:06 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-06-09 00:22:17 -0400
commitce3f0077cf3c5ae8edc116177f2f3d33258be9f7 (patch)
treea8cc4c5d9721c90b4ccd0304049551952f662dfd /lib/std
parent12051b02f1f455b85d5a519dd1747a67d4bb68d0 (diff)
downloadzig-ce3f0077cf3c5ae8edc116177f2f3d33258be9f7.tar.gz
zig-ce3f0077cf3c5ae8edc116177f2f3d33258be9f7.zip
Add builtin for llvm.wasm.memory.size.i32 instrinsic
This will allow the developer to poll the runtime for currently allocated memory in the number of Wasm pages. Typical usage: ```zig var wasm_pages = @wasmMemorySize(); @import("std").debug.assert(wasm_pages > 0); ```
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions