-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #593 from w3f/rfc-abort-handler
[PoC/WIP] Abort Handler Host API
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ include::misc.adoc[] | |
include::allocator.adoc[] | ||
|
||
include::logging.adoc[] | ||
|
||
include::panic_handler.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
=== Abort Handler | ||
|
||
Interface for aborting the execution of the runtime. | ||
|
||
==== `ext_panic_handler_abort_on_panic` | ||
Aborts the execution of the runtime with a given message. Note that the message | ||
will be only displayed if the host is enabled to display those types of | ||
messages, which is implementation specific. | ||
|
||
===== Version 1 - Prototype | ||
---- | ||
(func $ext_panic_handler_abort_on_panic_version_1 | ||
(param $message i64)) | ||
---- | ||
|
||
Arguments:: | ||
* `message`: a pointer-size (<<defn-runtime-pointer-size>>) to the UTF-8 encoded | ||
message. |