Macro sgx_trts::global_ctors_object [] [src]

macro_rules! global_ctors_object {
    ($var_name:ident, $func_name:ident = $func:block) => { ... };
}

global_ctors_object is the base macro of implementing constructors.

global_ctors_object registers functions to the .init_array section of the generated enclave binary. On the first ecall of enclave's execution, SGX would execute these registered functions and thus initialize data structures.