diff options
Diffstat (limited to 'build-aux/qmi-codegen/utils.py')
-rw-r--r-- | build-aux/qmi-codegen/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build-aux/qmi-codegen/utils.py b/build-aux/qmi-codegen/utils.py index 2d8e356..4b0f9ec 100644 --- a/build-aux/qmi-codegen/utils.py +++ b/build-aux/qmi-codegen/utils.py @@ -232,6 +232,15 @@ def format_is_signed_integer(fmt): else: return False +""" +Returns True if the given format corresponds to a basic floating point type +""" +def format_is_float(fmt): + if fmt == 'gfloat': + return True + else: + return False + """ Returns True if the given format corresponds to a basic signed or unsigned |