1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

log: use fully qualified namespace ref for __FILE_BASE__

helps prevent conflicts if "using namespace" is used
This commit is contained in:
Oliver Giles 2019-09-27 10:48:00 +03:00
parent 21c097a7a9
commit 4614ada1d3

View File

@ -46,8 +46,8 @@ namespace _ {
return static_alloc_str_impl<N>(str, std::make_integer_sequence<int, N>()); return static_alloc_str_impl<N>(str, std::make_integer_sequence<int, N>());
} }
} }
#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 // Provide alternative implementations to those from kj/debug.h which
// use __FILE__ directly and thus cause the full path to be encoded in // use __FILE__ directly and thus cause the full path to be encoded in