|
From: <kin...@us...> - 2023-07-15 21:56:47
|
Revision: 7114
http://sourceforge.net/p/teem/code/7114
Author: kindlmann
Date: 2023-07-15 21:56:46 +0000 (Sat, 15 Jul 2023)
Log Message:
-----------
AIR_CAST(size_t, _) is so common that it deserves its own thing there
Modified Paths:
--------------
teem/trunk/src/air/air.h
Modified: teem/trunk/src/air/air.h
===================================================================
--- teem/trunk/src/air/air.h 2023-07-15 14:31:23 UTC (rev 7113)
+++ teem/trunk/src/air/air.h 2023-07-15 21:56:46 UTC (rev 7114)
@@ -701,7 +701,7 @@
#define AIR_UNUSED(x) (void)(x)
/*
-******** AIR_CAST, AIR_UINT, AIR_INT
+******** AIR_CAST, AIR_UINT, AIR_INT, ...
**
** just casts, but with the added ability to grep for them more easily,
** since casts should probably always be revisited and reconsidered.
@@ -710,6 +710,7 @@
#define AIR_UCHAR(x) AIR_CAST(unsigned char, x)
#define AIR_USHORT(x) AIR_CAST(unsigned short, x)
#define AIR_UINT(x) AIR_CAST(unsigned int, x)
+#define AIR_SIZE_T(x) AIR_CAST(size_t, x)
#define AIR_INT(x) AIR_CAST(int, x)
#define AIR_FLOAT(x) AIR_CAST(float, x)
#define AIR_DOUBLE(x) AIR_CAST(double, x)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|