parse_signature

parse_signature(signature, tymap=nil)
Instance Public methods

Parses a C prototype signature

If Hash tymap is provided, the return value and the arguments from the signature are expected to be keys, and the value will be the C type to be looked up.

Example:

include Fiddle::CParser
  #=> Object

parse_signature('double sum(double, double)')
  #=> ["sum", Fiddle::TYPE_DOUBLE, [Fiddle::TYPE_DOUBLE, Fiddle::TYPE_DOUBLE]]
doc_ruby_on_rails
2015-04-05 21:13:42
Comments
Leave a Comment

Please login to continue.