[][src]Macro ckb_contract_std::setup

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

Usage

// define an entry point and initialize ckb-contract-std runtime
setup!(main)
// to indicate the heap size(default heap size is 1MB)
setup!(main, 2 * 1024 * 1024)