Follow up with the PR #31819

This commit is contained in:
Unique-Usman
2024-03-20 15:48:05 +00:00
committed by Luca Boccassi
parent c3a55dc469
commit c0cd99eee6
3 changed files with 67 additions and 35 deletions
+13
View File
@@ -383,4 +383,17 @@ assert_cc(sizeof(dummy_t) == 0);
((long)(_current_ - _entries_) < (long)(ELEMENTSOF(_entries_) - 1)) && ({ entry = *_current_; true; }); \
_current_++)
#define DECIMAL_STR_FMT(x) _Generic((x), \
char: "%c", \
bool: "%d", \
unsigned char: "%d", \
short: "%hd", \
unsigned short: "%hu", \
int: "%d", \
unsigned: "%u", \
long: "%ld", \
unsigned long: "%lu", \
long long: "%lld", \
unsigned long long: "%llu")
#include "log.h"