summaryrefslogtreecommitdiff
path: root/source/base/base_os.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/base/base_os.h')
-rw-r--r--source/base/base_os.h14
1 files changed, 14 insertions, 0 deletions
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 @@
1#ifndef BASE_OS_H
2#define BASE_OS_H
3
4internal void
5print(const char *str)
6{
7 i32 len = 0;
8 while (str[len]) len++;
9 write(STDOUT_FILENO, str, len);
10}
11
12#define print(Format) print(Format)
13
14#endif /* BASE_OS_H */