aboutsummaryrefslogtreecommitdiff
path: root/tests/cyn
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cyn')
-rw-r--r--tests/cyn/file.c6
-rw-r--r--tests/cyn/log.c4
2 files changed, 9 insertions, 1 deletions
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 <cynic.h>
+
+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 <cynic.h>
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"));
}