pub fn call(index: i32, export_map: &ScExportMap) {
        if (index & 0x8000) == 0 {
            // mutable full function, invoke with a func context
            let func = export_map.funcs[index as usize];
            func(&ScFuncContext {});
            return;
        }
        // immutable view function, invoke with a view context
        let view = export_map.views[(index & 0x7fff) as usize];
        view(&ScViewContext {});
    }
// general entrypoint for the host to call any SC function
// the host will pass the index of one of the entry points
// that was provided by on_load during SC initialization
general entrypoint for the host to call any SC function
the host will pass the index of one of the entry points
that was provided by on_load during SC initialization
general entrypoint for the host to call any SC function the host will pass the index of one of the entry points that was provided by on_load during SC initialization
pub fn call(index: i32, export_map: &ScExportMap) {
        if (index & 0x8000) == 0 {
            // mutable full function, invoke with a func context
            let func = export_map.funcs[index as usize];
            func(&ScFuncContext {});
            return;
        }
        // immutable view function, invoke with a view context
        let view = export_map.views[(index & 0x7fff) as usize];
        view(&ScViewContext {});
    }
pub fn call ( index : i32 , export_map : & ScExportMap ) { if ( index & 0x8000 ) == 0 { // mutable full function, invoke with a func context let func = export_map . funcs [ index as usize ] ; func ( & ScFuncContext { } ) ; return ; } // immutable view function, invoke with a view context let view = export_map . views [ ( index & 0x7fff ) as usize ] ; view ( & ScViewContext { } ) ; }
general entrypoint for the host to call any SC function
the host will pass the index of one of the entry points
that was provided by on_load during SC initialization
general entrypoint for the host to call any SC function the host will pass the index of one of the entry points that was provided by on_load during SC initialization
index
i32
export_map
&ScExportMap