summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-06 14:27:38 +0000
committerngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-06 14:27:38 +0000
commit382217c8b6633fc6a6c8dbf1173ff491ab86da25 (patch)
treeb4a84259488b301182c24d5ae172a5c6eed22977 /ext
parent60d6038ddaa6678ddcd7ce96ca6c947494b227a6 (diff)
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/fiddle/lib/fiddle/import.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/fiddle/lib/fiddle/import.rb b/ext/fiddle/lib/fiddle/import.rb
index 67deedd7ad6..f5a069b48aa 100644
--- a/ext/fiddle/lib/fiddle/import.rb
+++ b/ext/fiddle/lib/fiddle/import.rb
@@ -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)