summaryrefslogtreecommitdiff
path: root/src/binaryen-c.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-07-15 17:12:10 -0700
committerGitHub <noreply@github.com>2019-07-15 17:12:10 -0700
commitf6ca3828aca8e7da966ba158dd9dab16205206db (patch)
tree899995b7072e31039b435d679a66d11b56fb8730 /src/binaryen-c.h
parentc7e927179b4ce67bbf4f4c10a62e0fb0f7960750 (diff)
downloadbinaryen-f6ca3828aca8e7da966ba158dd9dab16205206db.tar.gz
binaryen-f6ca3828aca8e7da966ba158dd9dab16205206db.tar.bz2
binaryen-f6ca3828aca8e7da966ba158dd9dab16205206db.zip
Tail call C/JS API (#2223)
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r--src/binaryen-c.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index b186032f5..db49c45c9 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -545,6 +545,18 @@ BinaryenExpressionRef BinaryenCallIndirect(BinaryenModuleRef module,
BinaryenExpressionRef* operands,
BinaryenIndex numOperands,
const char* type);
+BinaryenExpressionRef BinaryenReturnCall(BinaryenModuleRef module,
+ const char* target,
+ BinaryenExpressionRef* operands,
+ BinaryenIndex numOperands,
+ BinaryenType returnType);
+BinaryenExpressionRef
+BinaryenReturnCallIndirect(BinaryenModuleRef module,
+ BinaryenExpressionRef target,
+ BinaryenExpressionRef* operands,
+ BinaryenIndex numOperands,
+ const char* type);
+
// LocalGet: Note the 'type' parameter. It might seem redundant, since the
// local at that index must have a type. However, this API lets you
// build code "top-down": create a node, then its parents, and so