From e83ae1b59160627bef19c519ba13817dd5ee88b6 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 2 Jul 2018 16:50:17 +0430 Subject: update --- resources/structsinclude.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 resources/structsinclude.h (limited to 'resources/structsinclude.h') diff --git a/resources/structsinclude.h b/resources/structsinclude.h new file mode 100644 index 0000000..47c3626 --- /dev/null +++ b/resources/structsinclude.h @@ -0,0 +1,27 @@ + +#ifndef WASM_H +#define WASM_H +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef uint8_t varint1; +typedef uint8_t varint7; +typedef uint32_t varint32; +typedef int8_t varuint1; +typedef int8_t varuint7; +typedef int32_t varuint32; + + enum value_type_t {f64_vt = -4, f32_vt, i64_vt, i32_vt}; + enum external_kind_t {Function, Table, Memory, Global}; + enum type_ctor_t {i32_ctor = -1, i64_ctor = -2, f32_ctor = -3, f64_ctor = -4, anyfunc_ctor = -16, func_ctor = -32, block_type_ctor = -64}; + +#ifdef __cplusplus +} +#endif // end of extern c +#endif // end of header guard +/**********************************************************************************************************************/ +/*last line intentionally left blank.*/ + -- cgit v1.2.3