diff options
| author | David Jones | 2003-02-19 13:27:16 +0000 |
|---|---|---|
| committer | David Jones | 2003-02-19 13:27:16 +0000 |
| commit | da6044a59a78d9134156c2d7a8817dde9c93d828 (patch) | |
| tree | d72e8a102462c38db177753c873de6abe4fb062d /mps/code/misc.h | |
| parent | fe0c3f3b6d95683387e726f10a34dd207acb7e40 (diff) | |
| download | emacs-da6044a59a78d9134156c2d7a8817dde9c93d828.tar.gz emacs-da6044a59a78d9134156c2d7a8817dde9c93d828.zip | |
Mps: added (untested) internals for messagetypegcstart
Copied from Perforce
Change: 39768
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/misc.h')
| -rw-r--r-- | mps/code/misc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mps/code/misc.h b/mps/code/misc.h index fb3a95a7174..bb805064004 100644 --- a/mps/code/misc.h +++ b/mps/code/misc.h | |||
| @@ -90,6 +90,17 @@ typedef const struct SrcIdStruct { | |||
| 90 | #define STR_(x) #x | 90 | #define STR_(x) #x |
| 91 | #define STR(x) STR_(x) | 91 | #define STR(x) STR_(x) |
| 92 | 92 | ||
| 93 | /* NELEMS -- counts number of elements in an array | ||
| 94 | * | ||
| 95 | * NELEMS(a) expands into an expression that is the number | ||
| 96 | * of elements in the array a. | ||
| 97 | * | ||
| 98 | * WARNING: expands a more than once (you'd have to write obviously | ||
| 99 | * perverse code for this to matter though). | ||
| 100 | */ | ||
| 101 | |||
| 102 | #define NELEMS(a) (sizeof(a)/sizeof((a)[0])) | ||
| 103 | |||
| 93 | 104 | ||
| 94 | /* DISCARD -- discards an expression, but checks syntax | 105 | /* DISCARD -- discards an expression, but checks syntax |
| 95 | * | 106 | * |