summaryrefslogtreecommitdiff
path: root/src/binaryen-c.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-07-11 18:38:32 -0700
committerGitHub <noreply@github.com>2017-07-11 18:38:32 -0700
commite6ea66898b90cd7b468aa5a78589672edf557389 (patch)
tree96772fc2b58c3690416df37a7881544990009c94 /src/binaryen-c.h
parent812943d51bac4767c4b7f749f17c26277e27f796 (diff)
downloadbinaryen-e6ea66898b90cd7b468aa5a78589672edf557389.tar.gz
binaryen-e6ea66898b90cd7b468aa5a78589672edf557389.tar.bz2
binaryen-e6ea66898b90cd7b468aa5a78589672edf557389.zip
add docs and error hints when a Call should be a CallImport (#1081)
* add docs and error hints when a Call should be a CallImport * fix binaryen API docs in docs/
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r--src/binaryen-c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index 90c7795f0..f37bcf085 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -281,6 +281,9 @@ BinaryenExpressionRef BinaryenSwitch(BinaryenModuleRef module, const char **name
// type returned by the function being called, as that
// function might not have been created yet, so we don't
// know what it is.
+// Also note that WebAssembly does not differentiate
+// between Call and CallImport, but Binaryen does, so you
+// must use CallImport if calling an import, and vice versa.
BinaryenExpressionRef BinaryenCall(BinaryenModuleRef module, const char *target, BinaryenExpressionRef* operands, BinaryenIndex numOperands, BinaryenType returnType);
BinaryenExpressionRef BinaryenCallImport(BinaryenModuleRef module, const char *target, BinaryenExpressionRef* operands, BinaryenIndex numOperands, BinaryenType returnType);
BinaryenExpressionRef BinaryenCallIndirect(BinaryenModuleRef module, BinaryenExpressionRef target, BinaryenExpressionRef* operands, BinaryenIndex numOperands, const char* type);