note on TYPE_INTEGRAL

SCCS-file: private.h
SCCS-SID: 7.57
This commit is contained in:
Arthur David Olson
2012-07-18 03:02:45 -04:00
committed by Paul Eggert
parent 5eae13f57b
commit aa0029ad08
+5
View File
@@ -238,6 +238,11 @@ char * scheck P((const char *string, const char *format));
#define TYPE_SIGNED(type) (((type) -1) < 0)
#endif /* !defined TYPE_SIGNED */
/*
** Since the definition of TYPE_INTEGRAL contains floating point numbers,
** it cannot be used in preprocessor directives.
*/
#ifndef TYPE_INTEGRAL
#define TYPE_INTEGRAL(type) (((type) 0.5) != 0.5)
#endif /* !defined TYPE_INTEGRAL */