mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
7 lines
212 B
Rust
7 lines
212 B
Rust
macro_rules! emscripten_memory_pointer {
|
|
($memory:expr, $pointer:expr) => {{
|
|
use std::cell::Cell;
|
|
(&$memory.view::<u8>()[($pointer as usize)..]).as_ptr() as *mut Cell<u8> as *mut u8
|
|
}};
|
|
}
|