added NELEMENTS()

This commit is contained in:
Jeff Hill
1991-09-26 17:07:08 +00:00
parent ff8256cecb
commit b1c753552d

View File

@@ -13,6 +13,7 @@
* Also droped the TCPDELAY to 50 mS
* .03 joh 090391 Updated for V5 vxWorks
* .04 joh 092491 changed order of ops on LOCALTICKS
* .05 joh 092691 added NELEMENTS()
*
*/
@@ -56,6 +57,10 @@
#define ERROR (-1)
#endif
#ifndef NELEMENTS
#define NELEMENTS(array) (sizeof(array)/sizeof((array)[0]))
#endif
/************************************************************************/
/* Provided to enforce one thread at a time code sections */
/* independent of a particular operating system */
@@ -133,7 +138,7 @@
void *device;
};
static char ca_unique_address;
#define MYTIMERID (&ca_unique_address)
# define MYTIMERID (&ca_unique_address)
#endif