1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c: document argument passed to finalizer proc.

[fix GH-976][ci skip] Patch by @alexdowad

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2015-07-29 01:44:49 +00:00
parent 72272159d8
commit c02ffd9a8f
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 29 10:44:43 2015 Alex Dowad <alexinbeijing@gmail.com>
* gc.c: document argument passed to finalizer proc.
[fix GH-976][ci skip] Patch by @alexdowad
Wed Jul 29 10:36:58 2015 NARUSE, Yui <naruse@ruby-lang.org>
* io.c (rb_io_extract_modeenc): add option parameter `flags'

4
gc.c
View file

@ -2474,7 +2474,9 @@ should_be_finalizable(VALUE obj)
* ObjectSpace.define_finalizer(obj, aProc=proc())
*
* Adds <i>aProc</i> as a finalizer, to be called after <i>obj</i>
* was destroyed.
* was destroyed. The object ID of the <i>obj</i> will be passed
* as an argument to <i>aProc</i>. If <i>aProc</i> is a lambda or
* method, make sure it can be called with a single argument.
*
*/