mirror of
https://github.com/extism/extism.git
synced 2026-01-09 13:57:55 -05:00
doc: more information about error_set (#737)
This commit is contained in:
@@ -546,7 +546,8 @@ pub unsafe fn reset() {
|
|||||||
MemoryRoot::new().reset()
|
MemoryRoot::new().reset()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the error message offset
|
/// Set the error message offset, the handle passed to this
|
||||||
|
/// function should not be freed after this call
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn error_set(h: Handle) {
|
pub unsafe fn error_set(h: Handle) {
|
||||||
let root = MemoryRoot::new();
|
let root = MemoryRoot::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user