mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 18:19:07 +08:00
20 lines
426 B
C++
20 lines
426 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace vcpkg
|
|
{
|
|
struct LineInfo
|
|
{
|
|
int line_number;
|
|
const char* file_name;
|
|
|
|
constexpr LineInfo() : line_number(0), file_name(nullptr) {}
|
|
constexpr LineInfo(const int lineno, const char* filename) : line_number(lineno), file_name(filename) {}
|
|
|
|
std::string to_string() const;
|
|
};
|
|
}
|
|
|
|
#define VCPKG_LINE_INFO vcpkg::LineInfo(__LINE__, __FILE__)
|