From 29bea2e426d3506a3fd510c9539797a57f542204 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 29 Oct 2015 13:11:26 -0700 Subject: support 'almost asm' --- src/asm2wasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/asm2wasm.cpp') diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp index ce722f131..f46d86c13 100644 --- a/src/asm2wasm.cpp +++ b/src/asm2wasm.cpp @@ -316,7 +316,7 @@ void Asm2WasmModule::processAsm(Ref ast) { Ref asmFunction = ast[1][0]; assert(asmFunction[0] == DEFUN); Ref body = asmFunction[3]; - assert(body[0][0] == STAT && body[0][1][0] == STRING && body[0][1][1]->getIString() == IString("use asm")); + assert(body[0][0] == STAT && body[0][1][0] == STRING && (body[0][1][1]->getIString() == IString("use asm") || body[0][1][1]->getIString() == IString("almost asm"))); auto addImport = [&](IString name, Ref imported, BasicType type) { assert(imported[0] == DOT); -- cgit v1.2.3