diff options
Diffstat (limited to 'source/base')
| -rwxr-xr-x | source/base/base_include.h | 1 | ||||
| -rw-r--r-- | source/base/base_os.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source/base/base_include.h b/source/base/base_include.h index e70ccf2..a376f29 100755 --- a/source/base/base_include.h +++ b/source/base/base_include.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <math.h> | 12 | #include <math.h> |
| 13 | #include <unistd.h> | 13 | #include <unistd.h> |
| 14 | #include <time.h> | 14 | #include <time.h> |
| 15 | #include <stdarg.h> | ||
| 15 | 16 | ||
| 16 | #include "base.h" | 17 | #include "base.h" |
| 17 | #include "base_mem.h" | 18 | #include "base_mem.h" |
diff --git a/source/base/base_os.h b/source/base/base_os.h index 536119e..82aa70d 100644 --- a/source/base/base_os.h +++ b/source/base/base_os.h | |||
| @@ -89,14 +89,20 @@ log_s8(string8 s) | |||
| 89 | os_write(s.data, s.size); | 89 | os_write(s.data, s.size); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | #if 1 | ||
| 92 | internal void | 93 | internal void |
| 93 | _log(const char *str) | 94 | _log(const char *str) |
| 94 | { | 95 | { |
| 96 | #ifdef BASE_LOGGING | ||
| 95 | s32 len = 0; | 97 | s32 len = 0; |
| 96 | while (str[len]) len++; | 98 | while (str[len]) len++; |
| 97 | os_write(str, len); | 99 | os_write(str, len); |
| 100 | #else | ||
| 101 | unused(str); | ||
| 102 | #endif | ||
| 98 | 103 | ||
| 99 | } | 104 | } |
| 105 | #endif | ||
| 100 | 106 | ||
| 101 | internal void | 107 | internal void |
| 102 | write_string(const char *str) | 108 | write_string(const char *str) |
