aboutsummaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/log.h b/src/log.h
index 88c12a2..2e8167b 100644
--- a/src/log.h
+++ b/src/log.h
@@ -1,12 +1,9 @@
#ifndef SKHD_LOG_H
#define SKHD_LOG_H
-#define internal static
-#define global static
+static bool verbose;
-global bool verbose;
-
-internal inline void
+static inline void
debug(const char *format, ...)
{
if (!verbose) return;
@@ -17,7 +14,7 @@ debug(const char *format, ...)
va_end(args);
}
-internal inline void
+static inline void
warn(const char *format, ...)
{
va_list args;
@@ -26,7 +23,7 @@ warn(const char *format, ...)
va_end(args);
}
-internal inline void
+static inline void
error(const char *format, ...)
{
va_list args;
@@ -36,7 +33,4 @@ error(const char *format, ...)
exit(EXIT_FAILURE);
}
-#undef internal
-#undef global
-
#endif