summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorChris Seaton <chris.seaton@shopify.com>2020-09-16 19:59:36 +0100
committerAaron Patterson <aaron.patterson@gmail.com>2020-09-16 13:52:24 -0700
commit8e173d8b2709f47cc0709f699640dafe850c9a8f (patch)
tree8c5421a14acb0bce87a723ae1b4a8959dc7f2326 /include/ruby
parentf75009c1222621836b2340bbb5f4d4274972ccb4 (diff)
Warn on a finalizer that captures the object to be finalized
Also improve specs and documentation for finalizers and more clearly recommend a safe code pattern to use them.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3444
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/internal/intern/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/internal/intern/proc.h b/include/ruby/internal/intern/proc.h
index d6f77cbd4d..24336a6a66 100644
--- a/include/ruby/internal/intern/proc.h
+++ b/include/ruby/internal/intern/proc.h
@@ -46,6 +46,7 @@ VALUE rb_method_call_with_block(int, const VALUE *, VALUE, VALUE);
VALUE rb_method_call_with_block_kw(int, const VALUE *, VALUE, VALUE, int);
int rb_mod_method_arity(VALUE, ID);
int rb_obj_method_arity(VALUE, ID);
+VALUE rb_callable_receiver(VALUE);
VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
RBIMPL_SYMBOL_EXPORT_END()