2 * On-screen Display Daemon -- Utility Functions
4 * (c) 2010--2013 Martin Mares <mj@ucw.cz>
9 #define NONRET __attribute__((noreturn))
10 #define FORMAT_CHECK(func,i,j) __attribute__((format(func,i,j)))
12 typedef uint64_t timestamp_t;
16 void NONRET FORMAT_CHECK(printf,1,2) die(char *fmt, ...);
19 #define DBG(f...) printf(f)
21 #define DBG(f...) do { } while(0)
24 void *xmalloc(int size);
25 void *xrealloc(void *ptr, int size);
27 timestamp_t get_current_time(void);