mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-19 22:44:19 +00:00
Add stringify macro to utils
Add macros for stringifying either the name of a macro or its value. In keeping with making our utils/ sort of look like kernel code, we use the kernel stringify names. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -114,4 +114,7 @@ static inline int memcmp_lens(const void *a, int a_len,
|
||||
int get_path(char *path, int flags);
|
||||
int read_block(int fd, u64 blkno, int shift, void **ret_val);
|
||||
|
||||
#define __stringify_1(x) #x
|
||||
#define __stringify(x) __stringify_1(x)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user