From 166877cf15f6afa89c9f8a61e267d485868d0ee1 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Thu, 25 Sep 2025 14:17:07 +0300 Subject: +disgrace and rework of ungrateful.h --- tests/cyn/file.c | 6 ++++++ tests/cyn/log.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/cyn/file.c (limited to 'tests/cyn') diff --git a/tests/cyn/file.c b/tests/cyn/file.c new file mode 100644 index 0000000..7767f7a --- /dev/null +++ b/tests/cyn/file.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + // cyn_log_write(CYN_LOG_INFO, UN_STR("Size of it is: %l"), sizeof(File_Handle)); + File_Handle file = cyn_file_open(UN_STR("Ligma.png")); +} diff --git a/tests/cyn/log.c b/tests/cyn/log.c index a6b0643..067d557 100644 --- a/tests/cyn/log.c +++ b/tests/cyn/log.c @@ -1,5 +1,7 @@ #include int main(void) { - cyn_log_write(UN_LOG_INFO, UN_STR("Hello %u %d %s!"), (u64)100, (s64)-400, UN_STR("World")); + un_alloc_temp_init(UN_KB(4)); + + cyn_log_write(CYN_LOG_INFO, UN_STR("Hello %u %d %s!"), (u64)100, (s64)-400, UN_STR("World")); } -- cgit v1.2.3-70-g09d2