#ifndef TraceLocation_h
#define TraceLocation_h
namespace WebCore {
class TraceLocation {
public:
TraceLocation(const char* functionName, const char* fileName)
: m_functionName(functionName)
, m_fileName(fileName)
{ }
TraceLocation()
: m_functionName("unknown")
, m_fileName("unknown")
{ }
const char* functionName() const { return m_functionName; }
const char* fileName() const { return m_fileName; }
private:
const char* m_functionName;
const char* m_fileName;
};
#define FROM_HERE WebCore::TraceLocation(__FUNCTION__, __FILE__)
}
#endif