aboutsummaryrefslogtreecommitdiffstats
path: root/resources/structsinclude.h
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-07-02 12:20:17 +0000
committerbloodstalker <thabogre@gmail.com>2018-07-02 12:20:17 +0000
commite83ae1b59160627bef19c519ba13817dd5ee88b6 (patch)
tree1e9af360fbfca0d27594474b432126a67eba38c6 /resources/structsinclude.h
parentupdate (diff)
downloadfaultreiber-e83ae1b59160627bef19c519ba13817dd5ee88b6.tar.gz
faultreiber-e83ae1b59160627bef19c519ba13817dd5ee88b6.zip
update
Diffstat (limited to 'resources/structsinclude.h')
-rw-r--r--resources/structsinclude.h27
1 files changed, 27 insertions, 0 deletions
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 <inttypes.h>
+
+#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.*/
+