library: added MAXTABLE macro to proc/procps-private.h
This macro should help the following patch be a little less prolix. Besides, this private header could/should do just a little more to help with our newlib efforts. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
bb9e74c00b
commit
c865b06c30
@ -24,5 +24,6 @@
|
||||
#define STRINGIFY_ARG(a) #a
|
||||
#define STRINGIFY(a) STRINGIFY_ARG(a)
|
||||
|
||||
#define MAXTABLE(t) (int)(sizeof(t) / sizeof(t[0]))
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user