Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
wasm_export.hpp
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3#ifdef __clang__
4#define WASM_EXPORT extern "C" __attribute__((visibility("default"))) __attribute__((annotate("wasm_export")))
5#define ASYNC_WASM_EXPORT \
6 extern "C" __attribute__((visibility("default"))) __attribute__((annotate("async_wasm_export")))
7#else
8#define WASM_EXPORT extern "C" __attribute__((visibility("default")))
9#define ASYNC_WASM_EXPORT extern "C" __attribute__((visibility("default")))
10#endif
11
12#ifdef __wasm__
13// Allow linker to not link this
14#define WASM_IMPORT(name) extern "C" __attribute__((import_module("env"), import_name(name)))
15#else
16#define WASM_IMPORT(name) extern "C"
17#endif
18
19using uint8_vec_vec_in_buf = uint8_t const*;
uint8_t const * uint8_vec_vec_in_buf