aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorame <[email protected]>2024-02-22 10:17:40 -0600
committerame <[email protected]>2024-02-22 10:17:40 -0600
commit149d594012b32158cd5e29f484cf0274dde6af44 (patch)
treef252e0c821a3c2cce56dd3180ea1c70fccd48d5a /src/util.h
parentb38fb544a43f161006924c055e12b2a1d9cf63f5 (diff)
cleaning and switch to parray_t
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
new file mode 100644
index 0000000..9a5b295
--- /dev/null
+++ b/src/util.h
@@ -0,0 +1,22 @@
+#define color_black "\e[30m"
+#define color_red "\e[31m"
+#define color_green "\e[32m"
+#define color_yellow "\e[33m"
+#define color_blue "\e[34m"
+#define color_magenta "\e[35m"
+#define color_cyan "\e[36m"
+#define color_lgray "\e[37m"
+#define color_gray "\e[90m"
+#define color_lred "\e[91m"
+#define color_lgreen "\e[92m"
+#define color_lyellow "\e[93m"
+#define color_lblue "\e[94m"
+#define color_lmagenta "\e[95m"
+#define color_lcyan "\e[96m"
+#define color_white "\e[97m"
+#define color_reset "\e[0m"
+
+#define i_swap(A,B) double temp = A; A = B; B = temp;
+
+void p_fatal(const char*);
+void p_error(const char*);