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:
1 2 3 4 5 | include Fiddle::CParser #=> Object parse_signature( 'double sum(double, double)' ) #=> ["sum", Fiddle::TYPE_DOUBLE, [Fiddle::TYPE_DOUBLE, Fiddle::TYPE_DOUBLE]] |
Please login to continue.