mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-exit.c: add reference to exit method.
Currently `exit` works as `exit!` (no handler). It should be fixed soon.
This commit is contained in:
@@ -9,6 +9,27 @@
|
||||
# define EXIT_FAILURE 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* exit(status=false)
|
||||
*
|
||||
* Exits the process immediately. No exit handlers are run currently.
|
||||
* <em>status</em> 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.
|
||||
* <em>status</em> is returned to the underlying system as the
|
||||
* exit status.
|
||||
*
|
||||
* exit!(true)
|
||||
*/
|
||||
static mrb_value
|
||||
f_exit_bang(mrb_state *mrb, mrb_value self)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user