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