Mercurial > yawc
diff src/include/util.h @ 0:f0372d3356b4 default tip
initial import
| author | Yasuri <linuxoverwindows@charliesmp.net> |
|---|---|
| date | Sun, 30 Aug 2026 12:47:10 -0500 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/include/util.h Sun Aug 30 12:47:10 2026 -0500 @@ -0,0 +1,18 @@ +#ifndef UTIL_H +#define UTIL_H + +#include <stdarg.h> +#include <stdint.h> +#include <stdio.h> + +#include <swc.h> +#include <wayland-server.h> + +void die(int ret, const char* fmt, ...); +void _log(FILE* fd, const char* fmt, ...); +void sig_handler(int s); + +#define LENGTH(x) (sizeof(x) / sizeof((x)[0])) + +#endif /* UTIL_H */ +
