From 56ebfa3f4b0d7a80090b344b294252d2be152bb0 Mon Sep 17 00:00:00 2001 From: nasr Date: Mon, 2 Mar 2026 22:43:16 +0000 Subject: feature(main): base library impelmentation --- source/base/base_os.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 source/base/base_os.h (limited to 'source/base/base_os.h') diff --git a/source/base/base_os.h b/source/base/base_os.h new file mode 100644 index 0000000..ce9acae --- /dev/null +++ b/source/base/base_os.h @@ -0,0 +1,14 @@ +#ifndef BASE_OS_H +#define BASE_OS_H + +internal void +print(const char *str) +{ + i32 len = 0; + while (str[len]) len++; + write(STDOUT_FILENO, str, len); +} + +#define print(Format) print(Format) + +#endif /* BASE_OS_H */ -- cgit v1.3