summaryrefslogtreecommitdiff
path: root/SpMV/include/utils.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-05-23 16:28:17 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-05-23 16:28:35 +0200
commitfa6c70a44fc56cc50370e57c460dd61e8f127b51 (patch)
tree91269761966dccea80a2931542db5a3648f66e18 /SpMV/include/utils.h
parent2e3a43c12df8115fc859248adb14b87e08becb77 (diff)
SpMV: Add AspectC++ support
Diffstat (limited to 'SpMV/include/utils.h')
-rw-r--r--SpMV/include/utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/SpMV/include/utils.h b/SpMV/include/utils.h
new file mode 100644
index 0000000..ccd8fbd
--- /dev/null
+++ b/SpMV/include/utils.h
@@ -0,0 +1,10 @@
+
+#ifndef _UTILS_H_
+#define _UTILS_H_
+
+#define PRINT_ERROR(fmt, ...) fprintf(stderr, "\033[0;31mERROR:\033[0m " fmt "\n", ##__VA_ARGS__)
+#define PRINT_WARNING(fmt, ...) fprintf(stderr, "\033[0;35mWARNING:\033[0m " fmt "\n", ##__VA_ARGS__)
+#define PRINT_INFO(cond, fmt, ...) if(cond) printf("\033[0;32mINFO:\033[0m " fmt "\n", ##__VA_ARGS__);
+#define PRINT(fmt, ...) printf(fmt "\n", ##__VA_ARGS__)
+
+#endif