main tohu / source / include / util.h
 1#ifndef UTIL_H
 2#define UTIL_H
 3
 4#include <stdarg.h>
 5#include <stdint.h>
 6#include <stdio.h>
 7
 8#include <swc.h>
 9#include <wayland-server.h>
10
11void die(int ret, const char* fmt, ...);
12void _log(FILE* fd, const char* fmt, ...);
13void sig_handler(int s);
14
15#define LENGTH(x) (sizeof(x) / sizeof((x)[0]))
16
17#endif /* UTIL_H */
18