Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
wasm_init.cpp File Reference

Go to the source code of this file.

Functions

void __wasm_call_ctors (void)
 
WASM_EXPORT void _initialize ()
 

Function Documentation

◆ __wasm_call_ctors()

void __wasm_call_ctors ( void  )
extern

WASI "reactors" expect an exported _initialize function, and for it to be called before any other exported function. It triggers initialization of all globals and statics. If you don't do this, every function call will trigger the initialization of globals as if they are "main". Good luck with that...

◆ _initialize()

WASM_EXPORT void _initialize ( )

Definition at line 11 of file wasm_init.cpp.