__init__(self,
name=None,
return_type=None,
arg_types=None,
decl_type=None,
header_dir=None,
header_file=None)
(Constructor)
| source code
|
- Parameters:
return_type (string or instance of type_t derived class) - callable return type
arg_types (list) - list of function argument types. arg_types can contain. Any item
within the list could be string or instance of type_t derived class. If you don't want some
argument to participate in match you can put None. For example:
calldef_matcher_t( arg_types=[ 'int &', None ] )
will match all functions that takes 2 arguments, where the
first one is reference to integer and second any
- Overrides:
matcher_base_t.__init__
|