summaryrefslogtreecommitdiff
path: root/src/wasm-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-common.c')
-rw-r--r--src/wasm-common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wasm-common.c b/src/wasm-common.c
index 4341ee8e..c471eb55 100644
--- a/src/wasm-common.c
+++ b/src/wasm-common.c
@@ -46,6 +46,13 @@ uint32_t wasm_get_opcode_alignment(WasmOpcode opcode, uint32_t alignment) {
return alignment;
}
+WasmStringSlice wasm_empty_string_slice(void) {
+ WasmStringSlice result;
+ result.start = "";
+ result.length = 0;
+ return result;
+}
+
WasmBool wasm_string_slices_are_equal(const WasmStringSlice* a,
const WasmStringSlice* b) {
return a->start && b->start && a->length == b->length &&