aboutsummaryrefslogtreecommitdiff
path: root/prut.h
diff options
context:
space:
mode:
Diffstat (limited to 'prut.h')
-rw-r--r--prut.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/prut.h b/prut.h
new file mode 100644
index 0000000..a41c01c
--- /dev/null
+++ b/prut.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#define prutprintf(fmt, ...) printf("\x1b[37m%s (%s:%d):\x1b[0m " fmt "\n", __PRETTY_FUNCTION__, __FILE_NAME__, __LINE__, __VA_ARGS__)
+
+#define prutprint(s) prutprintf("%s", s)
+