We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78d2e42 + 20e059a commit bb70077Copy full SHA for bb70077
scripts/parse_specs.py
@@ -326,6 +326,10 @@ def __validate_params(d, tags):
326
327
if item['type'].endswith("flag_t"):
328
raise Exception(prefix+"'type' must not be '*_flag_t': %s"%item['type'])
329
+
330
+ if type_traits.is_pointer(item['type']) and "_handle_t" in item['type'] and "[in]" in item['desc']:
331
+ if not param_traits.is_range(item):
332
+ raise Exception(prefix+"handle type must include a range(start, end) as part of 'desc'")
333
334
ver = __validate_version(item, prefix=prefix, base_version=d_ver)
335
if ver < max_ver:
0 commit comments