summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/log.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-12 09:30:02 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-12 09:30:02 +0000
commit9c3dd1e1e140ef6ed037baaf49fd4eec0fd65e5b (patch)
tree52e749a2df2a6cef42a57723fc224412c39240e6 /src/runtime/c/gu/log.h
parent2105188bd0ab85a6388bc18de12e43936f996105 (diff)
remove the logging from libgu
Diffstat (limited to 'src/runtime/c/gu/log.h')
-rw-r--r--src/runtime/c/gu/log.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/runtime/c/gu/log.h b/src/runtime/c/gu/log.h
deleted file mode 100644
index ec9ecdf75..000000000
--- a/src/runtime/c/gu/log.h
+++ /dev/null
@@ -1,65 +0,0 @@
-#ifndef GU_LOG_H_
-#define GU_LOG_H_
-
-#include <stdarg.h>
-
-typedef enum GuLogKind {
- GU_LOG_KIND_ENTER,
- GU_LOG_KIND_EXIT,
- GU_LOG_KIND_DEBUG,
- GU_LOG_KIND_ERROR
-} GuLogKind;
-
-void
-gu_log_full(GuLogKind kind, const char* func, const char* file, int line,
- const char* fmt, ...);
-
-
-void
-gu_log_full_v(GuLogKind kind, const char* func, const char* file, int line,
- const char* fmt, va_list args);
-
-
-#ifndef NDEBUG
-
-#define gu_logv(kind_, fmt_, args_) \
- gu_log_full_v(kind_, __func__, __FILE__, __LINE__, fmt_, args_)
-
-#define gu_log(kind_, ...) \
- gu_log_full(kind_, __func__, __FILE__, __LINE__, __VA_ARGS__)
-
-#else
-
-static inline void
-gu_logv(GuLogKind kind, const char* fmt, va_list args)
-{
- (void) kind;
- (void) fmt;
- (void) args;
-}
-
-static inline void
-gu_log(GuLogKind kind, const char* fmt, ...)
-{
- (void) kind;
- (void) fmt;
-}
-
-#endif
-
-
-
-
-#define gu_enter(...) \
- gu_log(GU_LOG_KIND_ENTER, __VA_ARGS__)
-
-#define gu_exit(...) \
- gu_log(GU_LOG_KIND_EXIT, __VA_ARGS__)
-
-#define gu_debug(...) \
- gu_log(GU_LOG_KIND_DEBUG, __VA_ARGS__)
-
-#define gu_debugv(kind_, fmt_, args_) \
- gu_logv(GU_LOG_KIND_DEBUG, fmt_, args_)
-
-#endif // GU_LOG_H_