Skip to content

Commit

Permalink
Merge pull request #763 from wasmx/comments-cleanup
Browse files Browse the repository at this point in the history
Minor improvements in documentation
  • Loading branch information
gumb0 authored Mar 17, 2021
2 parents 06dffc2 + 8ab6dba commit 5d09b85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/fizzy/fizzy.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ typedef struct FizzyExecutionResult
/// @param args Pointer to the argument array. Can be NULL iff function has no inputs.
/// @param depth Call stack depth.
/// @return Result of execution.
///
/// @note
/// External functions implemented in C++ must be non-throwing, i.e. the effect of any exception
/// escaping the function is std::terminate being called.
typedef FizzyExecutionResult (*FizzyExternalFn)(
void* context, FizzyInstance* instance, const FizzyValue* args, int depth);

Expand Down
2 changes: 1 addition & 1 deletion lib/fizzy/instantiate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

#include "instantiate.hpp"
#include "execute.hpp" // needed for table elements initialization
#include "execute.hpp" // needed for implementation of ExecuteFunction for Wasm functions
#include <algorithm>
#include <cassert>
#include <cstring>
Expand Down

0 comments on commit 5d09b85

Please sign in to comment.