diff options
-rw-r--r-- | src/utils/scan_name.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/scan_name.h b/src/utils/scan_name.h index 934228dc8..61ee8a4f1 100644 --- a/src/utils/scan_name.h +++ b/src/utils/scan_name.h @@ -35,6 +35,12 @@ class SCAN_Name u32bit arg_count() const { return name.size() - 1; } /** + @return if the number of arguments is between lower and upper + */ + bool arg_count_between(u32bit lower, u32bit upper) + { return ((arg_count() >= lower) && (arg_count() <= upper)); } + + /** @param i which argument @return the ith argument */ |