From b6a923c66b14d3b6fd3cc5f13af04e06807da808 Mon Sep 17 00:00:00 2001 From: nodist Date: Tue, 15 Sep 2026 16:38:14 -0400 Subject: add color pretty print and a test help --- include/README | 2 ++ include/kpl.h | 3 +++ include/kpl_test.h | 15 +++++++++++++++ 3 files changed, 20 insertions(+) (limited to 'include') 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); -- cgit v1.2.3