[][src]Macro ckb_std::libc_alloc

macro_rules! libc_alloc {
    () => { ... };
    ($heap_size:expr) => { ... };
}

Usage

// define global allocator with malloc/free
libc_alloc!()
// indicate the heap size(default heap size is 64KB)
libc_alloc!(64 * 1024)