mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/fiddle/lib/fiddle/import.rb (CALL_TYPE_TO_ABI): exclude private constant from RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60d6038dda
commit
382217c8b6
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,7 @@ module Fiddle
|
|||
end
|
||||
private :parse_bind_options
|
||||
|
||||
# :stopdoc:
|
||||
CALL_TYPE_TO_ABI = Hash.new { |h, k|
|
||||
raise RuntimeError, "unsupported call type: #{k}"
|
||||
}.merge({ :stdcall => (Function::STDCALL rescue Function::DEFAULT),
|
||||
|
@ -154,6 +155,7 @@ module Fiddle
|
|||
nil => Function::DEFAULT
|
||||
}).freeze
|
||||
private_constant :CALL_TYPE_TO_ABI
|
||||
# :startdoc:
|
||||
|
||||
# Creates a global method from the given C +signature+.
|
||||
def extern(signature, *opts)
|
||||
|
|
Loading…
Add table
Reference in a new issue