freenet_stdlib/
global.rs

1/// An instance ID, this is usually modified by the runtime when instancing a module.
2pub(crate) static mut INSTANCE_ID: i64 = -1i64;
3
4#[no_mangle]
5extern "C" fn __frnt_set_id(id: i64) {
6    unsafe {
7        INSTANCE_ID = id;
8    }
9}