summaryrefslogtreecommitdiff
path: root/src/utils/log.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 08:54:04 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 08:54:04 +0330
commit964c7178a371f79123d54a43671375f5c0ceb7e4 (patch)
tree3d4b2fe193e8bfd9b880014a8895c28b832e593a /src/utils/log.h
parent3adb71cebdec10823af28074a631bf929401e7c4 (diff)
better errors
Diffstat (limited to 'src/utils/log.h')
-rw-r--r--src/utils/log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/log.h b/src/utils/log.h
index 620b2a3..4057394 100644
--- a/src/utils/log.h
+++ b/src/utils/log.h
@@ -1,7 +1,10 @@
#pragma once
#define printLog(format,...) _printLogBack(format, __FILE_NAME__, __LINE__, ## __VA_ARGS__)
+#define printError(format,begin,end,...) _printErrorBack(format, __FILE_NAME__, __LINE__, begin, end, ## __VA_ARGS__)
#define UNREACHABLE printLog("Unreachable");exit(1)
extern void _printLogBack(const char *format, const char *file, int line, ...);
+
+extern void _printErrorBack(const char *format, const char *file, int line, char *begin, char *end, ...);