diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-08-10 17:31:53 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-08-11 00:33:04 +0100 |
commit | a5ee3af901408a5d0578360aaecfba7e27cc0954 (patch) | |
tree | 1eb9e1982d1dbedf7a9cbf110c17d2cd9a9200ff /src/interface-map.h | |
parent | fc6be4af3427f8b317d4d264fa1ec3739ba5427b (diff) | |
download | nsgenbind-a5ee3af901408a5d0578360aaecfba7e27cc0954.tar.gz nsgenbind-a5ee3af901408a5d0578360aaecfba7e27cc0954.tar.bz2 |
Ensure the number of parameters is correct for operations
For normal operations (not special, overloaded or varadic) check the
number of parameters passed is correct and add default values if
necessary.
This means every normal operation will always have a complete set of
parameters and throw an error if there are too few non optional
arguments.
Diffstat (limited to 'src/interface-map.h')
-rw-r--r-- | src/interface-map.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interface-map.h b/src/interface-map.h index 5f1926e..079ed96 100644 --- a/src/interface-map.h +++ b/src/interface-map.h @@ -13,13 +13,13 @@ struct genbind_node; struct webidl_node; /** - *map entry for each argument of an overload on an operation + * map entry for each argument of an overload on an operation */ struct interface_map_operation_argument_entry { const char *name; - int optionalc; /**< Number of parameters that are optional */ - int elipsisc; /**< Number of elipsis parameters */ + int optionalc; /**< 1 if the argument is optional */ + int elipsisc; /**< 1 if the argument is an elipsis */ struct webidl_node *node; }; |