diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-15 16:38:14 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-15 16:38:14 -0400 |
| commit | b6a923c66b14d3b6fd3cc5f13af04e06807da808 (patch) | |
| tree | 2732dfe99dba62561131d3d8a80a6dee9efd4503 /include | |
| parent | d30da2d13949caf2509f4b6f319612d08dff1a09 (diff) | |
add color pretty print and a test help
Diffstat (limited to 'include')
| -rw-r--r-- | include/README | 2 | ||||
| -rw-r--r-- | include/kpl.h | 3 | ||||
| -rw-r--r-- | include/kpl_test.h | 15 |
3 files changed, 20 insertions, 0 deletions
diff --git a/include/README b/include/README index f65c345..b182099 100644 --- a/include/README +++ b/include/README @@ -4,4 +4,6 @@ Headers Complier Flags: +KPL_COLOR_OFF # Turn off colored pretty printing + --- diff --git a/include/kpl.h b/include/kpl.h index 99ddf32..ad76991 100644 --- a/include/kpl.h +++ b/include/kpl.h @@ -1,2 +1,5 @@ #pragma once + +#include "kpl/color.h" +#include "kpl/type.h" diff --git a/include/kpl_test.h b/include/kpl_test.h index 1a61a30..6d19eff 100644 --- a/include/kpl_test.h +++ b/include/kpl_test.h @@ -1,4 +1,19 @@ #pragma once +// KPL testing framework + #include "kpl.h" + +typedef struct _kpl_test kpl_test; + +typedef void kpl_test_function(__attribute__((unused)) kpl_test *_test); + +typedef struct _kpl_test { + int32_t error_line_number; + char *file_name, *test_name, *error_message; + kpl_test_function *test_function; + struct _kpl_test *next_test; +} kpl_test; + +void kpl_test_add(kpl_test *_test); |
