diff options
author | Mike Dalessio <mike.dalessio@gmail.com> | 2021-05-26 01:38:31 -0400 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-20 08:30:06 +0900 |
commit | e8e3b7a0e2fc2cc6384eb10332cc46e385373cbb (patch) | |
tree | 3f83f009f282c5f6f72935ffd70de4d49fad2692 /version.h | |
parent | 6963f8f743b42f9004a0879cd66c550f18987352 (diff) |
Undefine the alloc function for T_DATA classes
which have not undefined or redefined it.
When a `T_DATA` object is created whose class has not undefined or
redefined the alloc function, the alloc function now gets undefined by
Data_Wrap_Struct et al. Optionally, a future release may also warn
that this being done.
This should help developers of C extensions to meet the requirements
explained in "doc/extension.rdoc". Without a check like this, there is
no easy way for an author of a C extension to see where they have made
a mistake.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4604
Diffstat (limited to 'version.h')
0 files changed, 0 insertions, 0 deletions