Use global namespaces in defines.
GitOrigin-RevId: f4bb51050ae51d4ff2baddd23dbd0e237f4b8283
This commit is contained in:
parent
c328bcac62
commit
01d768ff7e
@ -68,7 +68,7 @@ class ConstAs {
|
||||
#if __GLIBCXX__
|
||||
#define TD_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
|
||||
#else
|
||||
#define TD_IS_TRIVIALLY_COPYABLE(T) std::is_trivially_copyable<T>::value
|
||||
#define TD_IS_TRIVIALLY_COPYABLE(T) ::std::is_trivially_copyable<T>::value
|
||||
#endif
|
||||
|
||||
template <class ToT, class FromT,
|
||||
|
@ -47,7 +47,7 @@
|
||||
#define STRIP_LOG VERBOSITY_NAME(DEBUG)
|
||||
#endif
|
||||
#define LOG_IS_STRIPPED(strip_level) \
|
||||
(std::integral_constant<int, VERBOSITY_NAME(strip_level)>() > std::integral_constant<int, STRIP_LOG>())
|
||||
(::std::integral_constant<int, VERBOSITY_NAME(strip_level)>() > ::std::integral_constant<int, STRIP_LOG>())
|
||||
|
||||
#define LOGGER(interface, options, level, comment) ::td::Logger(interface, options, level, __FILE__, __LINE__, comment)
|
||||
|
||||
|
@ -23,8 +23,8 @@
|
||||
|
||||
#define BEGIN_STORE_FLAGS() \
|
||||
do { \
|
||||
td::uint32 flags_store = 0; \
|
||||
td::uint32 bit_offset_store = 0
|
||||
::td::uint32 flags_store = 0; \
|
||||
::td::uint32 bit_offset_store = 0
|
||||
|
||||
#define STORE_FLAG(flag) \
|
||||
flags_store |= (flag) << bit_offset_store; \
|
||||
@ -32,15 +32,15 @@
|
||||
|
||||
#define END_STORE_FLAGS() \
|
||||
CHECK(bit_offset_store < 31); \
|
||||
td::store(flags_store, storer); \
|
||||
::td::store(flags_store, storer); \
|
||||
} \
|
||||
while (false)
|
||||
|
||||
#define BEGIN_PARSE_FLAGS() \
|
||||
do { \
|
||||
td::uint32 flags_parse; \
|
||||
td::uint32 bit_offset_parse = 0; \
|
||||
td::parse(flags_parse, parser)
|
||||
::td::uint32 flags_parse; \
|
||||
::td::uint32 bit_offset_parse = 0; \
|
||||
::td::parse(flags_parse, parser)
|
||||
|
||||
#define PARSE_FLAG(flag) \
|
||||
flag = ((flags_parse >> bit_offset_parse) & 1) != 0; \
|
||||
|
Loading…
Reference in New Issue
Block a user