Issue #7514 has been updated by ngoto (Naohisa Goto).

Status changed from Assigned to Closed

In r38322, Fiddle::Function#initialize can get name by using :name keyword argument. For example,
  Fiddle::Function.new(ptr, [], Fiddle::TYPE_VOID, name: "example")

----------------------------------------
Bug #7514: DL::Function and DL::Importer#bind_function ignores abi and name when Fiddle is available
https://bugs.ruby-lang.org/issues/7514#change-34615

Author: ngoto (Naohisa Goto)
Status: Closed
Priority: Normal
Assignee: ngoto (Naohisa Goto)
Category: ext
Target version: 2.0.0
ruby -v: -


Like Bug #7484, when Fiddle is available, Fiddle's DL wrapper for DL::Function ignores :stdcall ABI. In addition, when creating callback closure, DL::Function wrapped by Fiddle does not set name, and DL::Function#name raises NoMethodError.



-- 
http://bugs.ruby-lang.org/