diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 11:42:48 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 11:42:48 +0100 |
commit | 0c85a2ebf172b6c651ed65f67269b26797054b4d (patch) | |
tree | b8ab2ac4f26de26b7b60db0cfd1f528142726f7f /api/logger.h | |
parent | api: conditionalize quasi expensive prelinkevent (diff) | |
download | wintun-0c85a2ebf172b6c651ed65f67269b26797054b4d.tar.xz wintun-0c85a2ebf172b6c651ed65f67269b26797054b4d.zip |
api: move _L macro where it belongs
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-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)) |