]> git.lizzy.rs Git - uwu-lang.git/blobdiff - common/err.h
Use uwu-common as submodule
[uwu-lang.git] / common / err.h
diff --git a/common/err.h b/common/err.h
deleted file mode 100644 (file)
index b9faf11..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef _COMMON_ERR_H_
-#define _COMMON_ERR_H_
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-
-static inline void error(const char *format, ...)
-{
-       va_list args;
-       va_start(args, format);
-       vfprintf(stderr, format, args);
-       va_end(args);
-       exit(1);
-}
-
-static inline void syserror(const char *call, FILE *file)
-{
-       perror(call);
-
-       if (file)
-               fclose(file);
-
-       exit(1);
-}
-
-#endif