diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-05-31 21:11:06 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-06-09 00:22:17 -0400 |
| commit | ce3f0077cf3c5ae8edc116177f2f3d33258be9f7 (patch) | |
| tree | a8cc4c5d9721c90b4ccd0304049551952f662dfd /lib/std | |
| parent | 12051b02f1f455b85d5a519dd1747a67d4bb68d0 (diff) | |
| download | zig-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
