mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
libdm: add DM_ARRAY_SIZE
Add macro for reading detecting size of array.
This commit is contained in:
parent
7c6526aae2
commit
1b4f888bc5
@ -1,5 +1,6 @@
|
||||
Version 1.02.78 -
|
||||
===================================
|
||||
Add DM_ARRAY_SIZE public macro.
|
||||
Move syslog code out of signal handle in dmeventd.
|
||||
Add DM_TO_STRING public macro.
|
||||
Always return success on dmeventd -V command call.
|
||||
|
@ -38,6 +38,8 @@
|
||||
#define DM_TO_STRING_EXP(A) #A
|
||||
#define DM_TO_STRING(A) DM_TO_STRING_EXP(A)
|
||||
|
||||
#define DM_ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user