diff --git a/src/kaleidoscope/event_handlers.h b/src/kaleidoscope/event_handlers.h index 29b73d29..535d4e61 100644 --- a/src/kaleidoscope/event_handlers.h +++ b/src/kaleidoscope/event_handlers.h @@ -27,7 +27,7 @@ // OPERATION once for each event handler defined herein with the following // parameters: // -// HOOK_NAME, SHOULD_ABORT_ON_CONSUMED_EVENT, SIGNATURE, ARGS_LIST, ... +// HOOK_NAME, SHOULD_EXIT_IF_RESULT_NOT_OK, SIGNATURE, ARGS_LIST, ... // // Any additional parameters that are added to an invokation // of _FOR_EACH_EVENT_HANDLER are passed through to OP. @@ -72,8 +72,8 @@ // Plugins' event handlers are called in the same order as the plugins // are passed to the KALEIDOSCOPE_INIT_PLUGINS(...) macro within the // sketch. For some handlers it is desirable to not call subsequent -// plugins' handlers once a plugin's handler returned the value -// kaleidoscope::EventHandlerResult::EVENT_CONSUMED. To enable this +// plugins' handlers once a plugin's handler returned a value other +// than kaleidoscope::EventHandlerResult::OK. To enable this, // pass the abortable flag value _ABORTABLE, _NOT_ABORTABLE otherwise. // // template parameter type list: diff --git a/src/kaleidoscope/hooks.cpp b/src/kaleidoscope/hooks.cpp index 015837f5..c99a0032 100644 --- a/src/kaleidoscope/hooks.cpp +++ b/src/kaleidoscope/hooks.cpp @@ -32,7 +32,7 @@ namespace kaleidoscope { #define INSTANTIATE_WEAK_HOOK_FUNCTION( \ HOOK_NAME, HOOK_VERSION, DEPRECATION_TAG, \ - SHOULD_ABORT_ON_CONSUMED_EVENT, \ + SHOULD_EXIT_IF_RESULT_NOT_OK, \ TMPL_PARAM_TYPE_LIST, TMPL_PARAM_LIST, TMPL_DUMMY_ARGS_LIST, \ SIGNATURE, ARGS_LIST) __NL__ \ __NL__ \ diff --git a/src/kaleidoscope/hooks.h b/src/kaleidoscope/hooks.h index abd6f682..d59ffccf 100644 --- a/src/kaleidoscope/hooks.h +++ b/src/kaleidoscope/hooks.h @@ -78,7 +78,7 @@ class Hooks { #define DEFINE_WEAK_HOOK_FUNCTION( \ HOOK_NAME, HOOK_VERSION, DEPRECATION_TAG, \ - SHOULD_ABORT_ON_CONSUMED_EVENT, \ + SHOULD_EXIT_IF_RESULT_NOT_OK, \ TMPL_PARAM_TYPE_LIST, TMPL_PARAM_LIST, TMPL_DUMMY_ARGS_LIST, \ SIGNATURE, ARGS_LIST) __NL__ \ __NL__ \ diff --git a/src/kaleidoscope_internal/event_dispatch.h b/src/kaleidoscope_internal/event_dispatch.h index 5211e86d..747dc270 100644 --- a/src/kaleidoscope_internal/event_dispatch.h +++ b/src/kaleidoscope_internal/event_dispatch.h @@ -80,7 +80,7 @@ #define _REGISTER_EVENT_HANDLER( \ HOOK_NAME, HOOK_VERSION, DEPRECATION_TAG, \ - SHOULD_ABORT_ON_CONSUMED_EVENT, \ + SHOULD_EXIT_IF_RESULT_NOT_OK, \ TMPL_PARAM_TYPE_LIST, TMPL_PARAM_LIST, TMPL_DUMMY_ARGS_LIST, \ SIGNATURE, ARGS_LIST) __NL__ \ __NL__ \ @@ -116,8 +116,8 @@ MAKE_TEMPLATE_SIGNATURE(UNWRAP TMPL_PARAM_TYPE_LIST) __NL__ \ struct _NAME4(EventHandler_, HOOK_NAME, _v, HOOK_VERSION) { __NL__ \ __NL__ \ - static bool shouldAbortOnConsumedEvent() { __NL__ \ - return SHOULD_ABORT_ON_CONSUMED_EVENT; __NL__ \ + static bool shouldExitIfResultNotOk() { __NL__ \ + return SHOULD_EXIT_IF_RESULT_NOT_OK; __NL__ \ } __NL__ \ __NL__ \ template