From 4614ada1d340d158660f4b89219e307de7ed2d98 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Fri, 27 Sep 2019 10:48:00 +0300 Subject: [PATCH] log: use fully qualified namespace ref for __FILE_BASE__ helps prevent conflicts if "using namespace" is used --- src/log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log.h b/src/log.h index d539dbc..54020c2 100644 --- a/src/log.h +++ b/src/log.h @@ -46,8 +46,8 @@ namespace _ { return static_alloc_str_impl(str, std::make_integer_sequence()); } } -#define __FILE_BASE__ (_::static_alloc_str<_::static_strlen(_::static_basename(__FILE__))>(_::static_basename(__FILE__)).buf) - +#define __FILE_BASE__ (::_::static_alloc_str<::_::static_strlen(::_::static_basename(__FILE__))>\ + (::_::static_basename(__FILE__)).buf) // Provide alternative implementations to those from kj/debug.h which // use __FILE__ directly and thus cause the full path to be encoded in