diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-13 16:04:29 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-13 16:04:29 -0700 |
| commit | e3bba294b4b08887851382573a7f2c73545e85fb (patch) | |
| tree | c71f8ddae944a5c5b43eca18fedc5919122d2e84 /toolsrc/src/vcpkg_Checks.cpp | |
| parent | a1d38868ab2998f07cc0f44fa1f747fe0cb7d5bb (diff) | |
| download | vcpkg-e3bba294b4b08887851382573a7f2c73545e85fb.tar.gz vcpkg-e3bba294b4b08887851382573a7f2c73545e85fb.zip | |
Introduce LINE_INFO macro + struct
Diffstat (limited to 'toolsrc/src/vcpkg_Checks.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_Checks.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg_Checks.cpp b/toolsrc/src/vcpkg_Checks.cpp index 02d3480a2..caffb1a8f 100644 --- a/toolsrc/src/vcpkg_Checks.cpp +++ b/toolsrc/src/vcpkg_Checks.cpp @@ -2,6 +2,14 @@ #include "vcpkg_Checks.h" #include "vcpkg_System.h" +namespace vcpkg +{ + std::string LineInfo::toString() const + { + return Strings::format("%s(%d)", this->file_name, this->line_number); + } +} + namespace vcpkg::Checks { __declspec(noreturn) void unreachable() |
