21static inline
void cleanup_free(
void *_p){
29static inline
void check_alloc(const
char *restrict what, const
void *restrict buf){
31 fprintf(stderr,
"\e[1;31mAllocation failed for %s!\e[0m\n", what);
38static inline
void print_summary(const
char *what, uint64_t correct, uint64_t total){
39 fprintf(stderr,
"%s (found %s for %"PRIu64
"/%"PRIu64
" numbers correctly)\e[0m\n", correct == total ?
"\e[1;32mPASSED" :
"\e[1;31mFAILED", what, correct, total);
#define NUT_ATTR_ACCESS(...)
Wrapper for gcc's access function annotation - no clang equivalent, and currently disabled because it...
#define NUT_ATTR_ARTIFICIAL
Wrapper for gnu::artificial attr - hint that the function should be ignored in debuggers.
#define NUT_ATTR_NONNULL(...)
Wrapper for gnu::nonnull attr.