2017-03-14 08:14:00 +08:00
|
|
|
#pragma once
|
|
|
|
|
2017-06-06 06:58:47 +08:00
|
|
|
#include <string>
|
|
|
|
|
2017-03-14 08:14:00 +08:00
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
struct LineInfo
|
|
|
|
{
|
|
|
|
int line_number;
|
|
|
|
const char* file_name;
|
|
|
|
|
|
|
|
constexpr LineInfo() : line_number(0), file_name(nullptr) {}
|
2017-04-28 08:56:06 +08:00
|
|
|
constexpr LineInfo(const int lineno, const char* filename) : line_number(lineno), file_name(filename) {}
|
2017-03-14 08:14:00 +08:00
|
|
|
|
2017-04-04 07:47:58 +08:00
|
|
|
std::string to_string() const;
|
2017-03-14 08:14:00 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#define VCPKG_LINE_INFO vcpkg::LineInfo(__LINE__, __FILE__)
|