Files
lambda/util.h
2026-04-09 23:27:34 -07:00

19 lines
322 B
C

#ifndef INCLUDED_MACRO_H
#define INCLUDED_MACRO_H
#ifndef __has_attribute
# define __has_attribute(x) 0
#endif
#if __has_attribute(format)
# define ATTR_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
#else
# define ATTR_FORMAT(...)
#endif
#include <stdlib.h>
void *malloc_safe(size_t size);
#endif