aboutsummaryrefslogtreecommitdiff
path: root/include/kpl/macro.h
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-09-20 17:10:21 -0400
committernodist <kevin.comas.git@gmail.com>2026-09-20 17:10:21 -0400
commit260e50d627aea535abcd9d9902c1b4ae56da4c54 (patch)
tree91a5ec00e02e67c78437040a798f2fa3140e57a0 /include/kpl/macro.h
parent4e19e6ab1bd24466d9dcb0d8eea54a7e3d84d576 (diff)
add config for io and thread
Diffstat (limited to 'include/kpl/macro.h')
-rw-r--r--include/kpl/macro.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/kpl/macro.h b/include/kpl/macro.h
index 63699d0..cdcaa1f 100644
--- a/include/kpl/macro.h
+++ b/include/kpl/macro.h
@@ -6,4 +6,8 @@
#include "color.h"
#include "type.h"
-#define KPL_PRINT_TODO(MESSAGE) printf(KPL_COLOR2(BOLD, LIGHT_YELLOW) "TODO " KPL_COLOR(RESET) KPL_COLOR(BOLD) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_BLUE) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_MAGENTA) "%d" KPL_COLOR(RESET) "::" KPL_COLOR(LIGHT_YELLOW) "%s\n" KPL_COLOR(RESET), __FILE__, __FUNCTION__, __LINE__, MESSAGE)
+#define _KPL_PRINT_(MESSAGE_COLOR, MESSAGE) printf(KPL_COLOR2(BOLD, MESSAGE_COLOR) "TODO " KPL_COLOR(RESET) KPL_COLOR(BOLD) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_BLUE) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_MAGENTA) "%d" KPL_COLOR(RESET) "::" KPL_COLOR(MESSAGE_COLOR) "%s\n" KPL_COLOR(RESET), __FILE__, __FUNCTION__, __LINE__, MESSAGE)
+
+#define KPL_PRINT_TODO(MESSAGE) _KPL_PRINT_(LIGHT_YELLOW, MESSAGE)
+
+#define KPL_PRINT_ERROR(MESSAGE) _KPL_PRINT_(LIGHT_RED, MESSAGE)