summaryrefslogtreecommitdiffstats
path: root/third_party/wasm2c/src/prebuilt/wasm2c.include.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /third_party/wasm2c/src/prebuilt/wasm2c.include.h
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/wasm2c/src/prebuilt/wasm2c.include.h')
-rw-r--r--third_party/wasm2c/src/prebuilt/wasm2c.include.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/third_party/wasm2c/src/prebuilt/wasm2c.include.h b/third_party/wasm2c/src/prebuilt/wasm2c.include.h
new file mode 100644
index 0000000000..fcd2ff4b55
--- /dev/null
+++ b/third_party/wasm2c/src/prebuilt/wasm2c.include.h
@@ -0,0 +1,55 @@
+/* Generated from 'wasm2c.h.tmpl' by wasm2c_tmpl.py, do not edit! */
+const char SECTION_NAME(top)[] =
+"/* Automically generated by wasm2c */\n"
+"#ifdef __cplusplus\n"
+"extern \"C\" {\n"
+"#endif\n"
+"\n"
+"#include <stdint.h>\n"
+"\n"
+"#include \"wasm-rt.h\"\n"
+"\n"
+"#ifndef WASM_RT_MODULE_PREFIX\n"
+"#define WASM_RT_MODULE_PREFIX\n"
+"#endif\n"
+"\n"
+"#define WASM_RT_PASTE_(x, y) x ## y\n"
+"#define WASM_RT_PASTE(x, y) WASM_RT_PASTE_(x, y)\n"
+"#define WASM_RT_ADD_PREFIX(x) WASM_RT_PASTE(WASM_RT_MODULE_PREFIX, x)\n"
+"\n"
+"#define WASM_CURR_ADD_PREFIX(x) WASM_RT_PASTE(WASM_CURR_MODULE_PREFIX, x)\n"
+"\n"
+"/* TODO(binji): only use stdint.h types in header */\n"
+"typedef uint8_t u8;\n"
+"typedef int8_t s8;\n"
+"typedef uint16_t u16;\n"
+"typedef int16_t s16;\n"
+"typedef uint32_t u32;\n"
+"typedef int32_t s32;\n"
+"typedef uint64_t u64;\n"
+"typedef int64_t s64;\n"
+"typedef float f32;\n"
+"typedef double f64;\n"
+"\n"
+"#ifndef WASM_DONT_EXPORT_FUNCS\n"
+"# if defined(_WIN32)\n"
+"# define FUNC_EXPORT __declspec(dllexport)\n"
+"# else\n"
+"# define FUNC_EXPORT\n"
+"# endif\n"
+"#else\n"
+"# define FUNC_EXPORT\n"
+"#endif\n"
+"\n"
+"FUNC_EXPORT wasm2c_sandbox_funcs_t WASM_CURR_ADD_PREFIX(get_wasm2c_sandbox_info)();\n"
+"\n"
+"struct wasm2c_sandbox_t;\n"
+"typedef struct wasm2c_sandbox_t wasm2c_sandbox_t;\n"
+;
+
+const char SECTION_NAME(bottom)[] =
+"\n"
+"#ifdef __cplusplus\n"
+"}\n"
+"#endif\n"
+;