aboutsummaryrefslogtreecommitdiff
path: root/src/err.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 18:31:53 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 18:31:53 +0100
commitec14f2955222932bb68704cc4590ba1dbd165cd9 (patch)
tree7bc4e580170231af32305f65875bd3cb2d9d541c /src/err.h
parent4c52777ca9e52edd0bff76168d886de9757ea457 (diff)
downloaduwu-lang-ec14f2955222932bb68704cc4590ba1dbd165cd9.tar.xz
Allow passing arguments to program, refactor directory structure
Diffstat (limited to 'src/err.h')
-rw-r--r--src/err.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/err.h b/src/err.h
deleted file mode 100644
index 1dccbf9..0000000
--- a/src/err.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef _ERR_H_
-#define _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);
-}
-
-#endif