зеркало из https://github.com/github/ruby.git
* 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:
Родитель
60d6038dda
Коммит
382217c8b6
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче