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]]
Please login to continue.