diff options
Diffstat (limited to 'source/base/base_os.h')
| -rw-r--r-- | source/base/base_os.h | 6 |
1 files changed, 6 insertions, 0 deletions
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) |
