diff options
Diffstat (limited to 'api/logger.h')
-rw-r--r-- | api/logger.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/logger.h b/api/logger.h index 4bf8e04..5e26de3 100644 --- a/api/logger.h +++ b/api/logger.h @@ -28,6 +28,8 @@ LoggerLastError(_In_z_ const WCHAR *Prefix) return Error; } +#define __L(x) L##x +#define _L(x) __L(x) #define LOG(lvl, msg) (Logger((lvl), _L(__FUNCTION__) L": " msg)) #define LOG_ERROR(msg, err) (LoggerError(_L(__FUNCTION__) L": " msg, (err))) #define LOG_LAST_ERROR(msg) (LoggerLastError(_L(__FUNCTION__) L": " msg)) |