From b06fef65ea79e9a5ed6ad8b99813d460ac5108a6 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 5 Sep 2022 23:36:04 +0900 Subject: [PATCH] mruby-exit.c: add reference to `exit` method. Currently `exit` works as `exit!` (no handler). It should be fixed soon. --- mrbgems/mruby-exit/src/mruby-exit.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/mrbgems/mruby-exit/src/mruby-exit.c b/mrbgems/mruby-exit/src/mruby-exit.c index 046695c11..726c15341 100644 --- a/mrbgems/mruby-exit/src/mruby-exit.c +++ b/mrbgems/mruby-exit/src/mruby-exit.c @@ -9,6 +9,27 @@ # define EXIT_FAILURE 1 #endif +/* + * call-seq: + * exit(status=false) + * + * Exits the process immediately. No exit handlers are run currently. + * status is returned to the underlying system as the + * exit status. + * + * exit(true) + */ + +/* + * call-seq: + * exit!(status=false) + * + * Exits the process immediately. No exit handlers are run. + * status is returned to the underlying system as the + * exit status. + * + * exit!(true) + */ static mrb_value f_exit_bang(mrb_state *mrb, mrb_value self) {