summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-02 06:01:12 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-02 06:01:12 +0000
commit88c127c19be3d12bc5edcb6ceb416985258396c6 (patch)
treec2d59557f5341202c22bf05448bebaad3df40a19 /eval.c
parenteee1377a60de602723599d313e1379ba7d875add (diff)
Finish documenting internal stuff. See Changelog for other details
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 1578dc7720..6d88111a85 100644
--- a/eval.c
+++ b/eval.c
@@ -4181,9 +4181,12 @@ rb_exit(status)
exit(status);
}
+
/*
* call-seq:
* exit(integer=0)
+ * Kernel::exit(integer=0)
+ * Process::exit(integer=0)
*
* Initiates the termination of the Ruby script by raising the
* <code>SystemExit</code> exception. This exception may be caught. The
@@ -4203,9 +4206,9 @@ rb_exit(status)
* rescued a SystemExit exception
* after begin block
*
- * Just prior to termination, Ruby executes any <code>at_exit</code>
- * functions and runs any object finalizers (see
- * <code>ObjectSpace</code> beginning on page 434).
+ * Just prior to termination, Ruby executes any <code>at_exit</code> functions
+ * (see Kernel::at_exit) and runs any object finalizers (see
+ * ObjectSpace::define_finalizer).
*
* at_exit { puts "at_exit function" }
* ObjectSpace.define_finalizer("string", proc { puts "in finalizer" })
@@ -4246,10 +4249,12 @@ rb_f_exit(argc, argv)
return Qnil; /* not reached */
}
+
/*
* call-seq:
* abort
- * abort(msg)
+ * Kernel::abort
+ * Process::abort
*
* Terminate execution immediately, effectively by calling
* <code>Kernel.exit(1)</code>. If _msg_ is given, it is written