[][src]Macro ckb_contract_std::setup

macro_rules! setup {
    ($main:path) => { ... };
    ($main:path, $heap_size:expr, $min_block_size:expr) => { ... };
}

Usage

// define an entry point and initialize global allocator
setup!(main)
// indicate the heap size(default heap size is 64KB, with 16Bytes min allocated memory)
setup!(main, 64 * 1024, 16)