mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-01 00:42:16 +01:00
Provide private G_SIGNEDNESS_OF macro in glib-private.h
Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
committed by
Philip Withnall
parent
7c41a6529b
commit
a0ed94a11d
@@ -25,6 +25,16 @@
|
||||
#include "gstdioprivate.h"
|
||||
#include "gdatasetprivate.h"
|
||||
|
||||
/*
|
||||
* G_SIGNEDNESS_OF:
|
||||
* @T: a numeric type such as `unsigned int`
|
||||
*
|
||||
* An integer constant expression indicating whether @T is a signed type.
|
||||
*
|
||||
* Returns: 1 if @T is signed, 0 if it is unsigned
|
||||
*/
|
||||
#define G_SIGNEDNESS_OF(T) (((T) -1) <= 0)
|
||||
|
||||
/* gcc defines __SANITIZE_ADDRESS__, clang sets the address_sanitizer
|
||||
* feature flag.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user