summaryrefslogtreecommitdiffstats
path: root/third_party/wasm2c/src/prebuilt/wasm2c_header_top.cc
blob: d36aaf0c0f13cd6badcf6ceab136c8b629b5eaca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const char* s_header_top = R"w2c_template(#include <stdint.h>
)w2c_template"
R"w2c_template(
#include "wasm-rt.h"
)w2c_template"
R"w2c_template(
#if defined(WASM_RT_ENABLE_EXCEPTION_HANDLING)
)w2c_template"
R"w2c_template(#include "wasm-rt-exceptions.h"
)w2c_template"
R"w2c_template(#endif
)w2c_template"
R"w2c_template(
#if defined(WASM_RT_ENABLE_SIMD)
)w2c_template"
R"w2c_template(#include "simde/wasm/simd128.h"
)w2c_template"
R"w2c_template(#endif
)w2c_template"
R"w2c_template(
/* TODO(binji): only use stdint.h types in header */
)w2c_template"
R"w2c_template(#ifndef WASM_RT_CORE_TYPES_DEFINED
)w2c_template"
R"w2c_template(#define WASM_RT_CORE_TYPES_DEFINED
)w2c_template"
R"w2c_template(typedef uint8_t u8;
)w2c_template"
R"w2c_template(typedef int8_t s8;
)w2c_template"
R"w2c_template(typedef uint16_t u16;
)w2c_template"
R"w2c_template(typedef int16_t s16;
)w2c_template"
R"w2c_template(typedef uint32_t u32;
)w2c_template"
R"w2c_template(typedef int32_t s32;
)w2c_template"
R"w2c_template(typedef uint64_t u64;
)w2c_template"
R"w2c_template(typedef int64_t s64;
)w2c_template"
R"w2c_template(typedef float f32;
)w2c_template"
R"w2c_template(typedef double f64;
)w2c_template"
R"w2c_template(
#if defined(WASM_RT_ENABLE_SIMD)
)w2c_template"
R"w2c_template(typedef simde_v128_t v128;
)w2c_template"
R"w2c_template(#endif
)w2c_template"
R"w2c_template(
#endif
)w2c_template"
R"w2c_template(
#ifdef __cplusplus
)w2c_template"
R"w2c_template(extern "C" {
)w2c_template"
R"w2c_template(#endif
)w2c_template"
;