@@ -32,9 +32,9 @@ typedef struct FizzyExecutionResult
3232{
3333 /// Whether execution ended with a trap.
3434 bool trapped ;
35- /// Whether function returned a value. Valid only if trapped == false
35+ /// Whether function returned a value. Valid only if trapped equals false.
3636 bool has_value ;
37- /// Value returned from a function. Valid only if has_value == true
37+ /// Value returned from a function. Valid only if has_value equals true.
3838 union FizzyValue value ;
3939} FizzyExecutionResult ;
4040
@@ -43,7 +43,7 @@ typedef struct FizzyExecutionResult
4343///
4444/// @param context Opaque pointer to execution context.
4545/// @param instance Pointer to module instance.
46- /// @param args Pointer to the argument array. Can be NULL if function has 0 inputs .
46+ /// @param args Pointer to the argument array. Can be NULL iff args_size equals 0 .
4747/// @param args_size Size of the argument array.
4848/// @param depth Call stack depth.
4949typedef struct FizzyExecutionResult (* FizzyExternalFn )(void * context ,
@@ -76,7 +76,7 @@ void fizzy_free_module(const struct FizzyModule* module);
7676///
7777/// @param module Pointer to module.
7878/// @param imported_functions Pointer to the imported function array.
79- /// @param imported_functions_size Size of the imported function array.
79+ /// @param imported_functions_size Size of the imported function array. Can be zero.
8080struct FizzyInstance * fizzy_instantiate (const struct FizzyModule * module ,
8181 const struct FizzyExternalFunction * imported_functions , size_t imported_functions_size );
8282
0 commit comments