diff options
author | David G. Quintas <dgq@google.com> | 2017-12-20 13:02:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 13:02:45 -0800 |
commit | ffc02054bd19061ed1aa38b90bb5c8dcc324af04 (patch) | |
tree | 3e95ccc336b01727bebcfddf5b54e37f62bb0411 /src/core/lib | |
parent | 3804b05e57c4ea657b25596657a6c6a6c623e73f (diff) | |
parent | 13a3e8cc2a42070ef8a14dc6b22c37cfc45fecaa (diff) |
Merge pull request #13834 from dgquintas/debug_location_namespace
Add namespace to macro expansion
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/support/debug_location.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/support/debug_location.h b/src/core/lib/support/debug_location.h index 0939da595d..9b3f9220fc 100644 --- a/src/core/lib/support/debug_location.h +++ b/src/core/lib/support/debug_location.h @@ -36,7 +36,7 @@ class DebugLocation { const char* file_; const int line_; }; -#define DEBUG_LOCATION DebugLocation(__FILE__, __LINE__) +#define DEBUG_LOCATION ::grpc_core::DebugLocation(__FILE__, __LINE__) #else class DebugLocation { public: @@ -44,7 +44,7 @@ class DebugLocation { const char* file() const { return nullptr; } int line() const { return -1; } }; -#define DEBUG_LOCATION DebugLocation() +#define DEBUG_LOCATION ::grpc_core::DebugLocation() #endif } // namespace grpc_core |