From 30751110e659d7c1719aedec1ea55f4429ecfc32 Mon Sep 17 00:00:00 2001 From: Alex Dovzhanyn Date: Thu, 22 Aug 2024 17:38:07 -0400 Subject: [PATCH] Add documentation to BinaryenIf --- src/binaryen-c.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 0b1319f3024..31212216f1b 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -706,7 +706,9 @@ BinaryenBlock(BinaryenModuleRef module, BinaryenExpressionRef* children, BinaryenIndex numChildren, BinaryenType type); -// If: ifFalse can be NULL +// If: ifFalse can be NULL. +// Result: A (result) clause will automatically be added if both ifTrue and ifFalse +// return concrete types. If ifFalse is NULL, no (result) type will be added BINARYEN_API BinaryenExpressionRef BinaryenIf(BinaryenModuleRef module, BinaryenExpressionRef condition, BinaryenExpressionRef ifTrue,