mirror of
https://github.com/isar/libmdbx.git
synced 2025-09-16 03:32:19 +08:00
mdbx: add mdbx_printf_args() macro.
Change-Id: I7fca72f8cc912d8644ecf149b755c78fb3cc7e23
This commit is contained in:
9
mdbx.h
9
mdbx.h
@@ -432,6 +432,15 @@ typedef mode_t mdbx_mode_t;
|
||||
#endif
|
||||
#endif /* __noreturn */
|
||||
|
||||
#ifndef mdbx_printf_args
|
||||
#if defined(__GNUC__) || __has_attribute(__format__)
|
||||
#define mdbx_printf_args(format_index, first_arg) \
|
||||
__attribute__((__format__(__printf__, format_index, first_arg)))
|
||||
#else
|
||||
#define mdbx_printf_args(format_index, first_arg)
|
||||
#endif
|
||||
#endif /* mdbx_printf_args */
|
||||
|
||||
#ifndef DEFINE_ENUM_FLAG_OPERATORS
|
||||
#if defined(__cplusplus)
|
||||
/// Define operator overloads to enable bit operations on enum values that are
|
||||
|
Reference in New Issue
Block a user