diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-17 15:26:43 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-17 15:26:43 -0400 |
| commit | ed19c8d27e2abf768ed2db33077330918b48ef84 (patch) | |
| tree | 4bb45332f10b64766b0e7b7d2ab8b0aefa54abb5 /include | |
| parent | 2ff1b10b9e42fad82334b13390a49311990a69e4 (diff) | |
add macro header
Diffstat (limited to 'include')
| -rw-r--r-- | include/kpl.h | 5 | ||||
| -rw-r--r-- | include/kpl/macro.h | 9 | ||||
| -rw-r--r-- | include/kpl/system.h | 2 |
3 files changed, 13 insertions, 3 deletions
diff --git a/include/kpl.h b/include/kpl.h index ad76991..adf366f 100644 --- a/include/kpl.h +++ b/include/kpl.h @@ -1,5 +1,6 @@ #pragma once -#include "kpl/color.h" -#include "kpl/type.h" +// All headers in one file for including + +#include "kpl/macro.h" diff --git a/include/kpl/macro.h b/include/kpl/macro.h new file mode 100644 index 0000000..f682a30 --- /dev/null +++ b/include/kpl/macro.h @@ -0,0 +1,9 @@ + +#pragma once + +// KPL specific macros + +#include "color.h" +#include "type.h" + +#define KPL_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) diff --git a/include/kpl/system.h b/include/kpl/system.h index f7d8239..06e8ad3 100644 --- a/include/kpl/system.h +++ b/include/kpl/system.h @@ -1,7 +1,7 @@ #pragma once -// System headers and miscellaneous utilities +// System headers #include <stdlib.h> #include <stdio.h> |
