Skip to content

Commit

Permalink
review(neon-sys): Fix comments on try_catch
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvalencik committed Dec 9, 2020
1 parent 3aa7667 commit aaa62c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/neon-sys/native/src/neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,16 @@ extern "C" {
void Neon_EventHandler_Schedule(void* thread_safe_cb, void* rust_callback, Neon_EventHandler handler);
void Neon_EventHandler_Delete(void* thread_safe_cb);

// The `result` out-parameter can be assumed to be initialized if and only if this function
// The `ok` out-parameter can be assumed to be initialized if and only if this function
// returns `CONTROL_RETURNED`.
// The `unwind_value` out-parameter can be assumed to be initialized if and only if this
// function returns `CONTROL_PANICKED`.
typedef try_catch_control_t (*Neon_TryCatchGlue)(void *rust_thunk, void *cx, void *ok, void **unwind_value);

// The `result` out-parameter can be assumed to be initialized if and only if this function
// returns `CONTROL_RETURNED` or `CONTROL_THREW`.
// The `ok` out-parameter can be assumed to be initialized if and only if this function
// returns `CONTROL_RETURNED`.
// The `err` out-parameter can be assumed to be initialized if and only if this function
// returns `CONTROL_THREW`.
// The `unwind_value` out-parameter can be assumed to be initialized if and only if this
// function returns `CONTROL_PANICKED`.
try_catch_control_t Neon_TryCatch_With(Neon_TryCatchGlue glue, void *rust_thunk, void *cx, void *ok, v8::Local<v8::Value> *err, void **unwind_value);
Expand Down

0 comments on commit aaa62c4

Please sign in to comment.