Add a macro for checking approximate values

A macro like this is useful to avoid direct comparisons between floating
point values.

https://gitlab.gnome.org/GNOME/glib/issues/914
This commit is contained in:
Emmanuele Bassi
2017-02-08 17:34:23 +00:00
parent 61ccf733cc
commit 24e98e38d6
3 changed files with 24 additions and 0 deletions

View File

@ -219,6 +219,7 @@ MAX
<SUBSECTION>
ABS
CLAMP
G_APPROX_VALUE
<SUBSECTION>
G_STRUCT_MEMBER