Merge pull request #13834 from dgquintas/debug_location_namespace

Add namespace to macro expansion
pull/13078/head
David G. Quintas 7 years ago committed by GitHub
commit ffc02054bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/lib/support/debug_location.h

@ -36,7 +36,7 @@ class DebugLocation {
const char* file_; const char* file_;
const int line_; const int line_;
}; };
#define DEBUG_LOCATION DebugLocation(__FILE__, __LINE__) #define DEBUG_LOCATION ::grpc_core::DebugLocation(__FILE__, __LINE__)
#else #else
class DebugLocation { class DebugLocation {
public: public:
@ -44,7 +44,7 @@ class DebugLocation {
const char* file() const { return nullptr; } const char* file() const { return nullptr; }
int line() const { return -1; } int line() const { return -1; }
}; };
#define DEBUG_LOCATION DebugLocation() #define DEBUG_LOCATION ::grpc_core::DebugLocation()
#endif #endif
} // namespace grpc_core } // namespace grpc_core

Loading…
Cancel
Save