Files
cemu-vcpkg/toolsrc/include/vcpkg/textrowcol.h
nicole mazzuca d2620cf02b [vcpkg formatting] Turn off DeriveLineEnding (#12368)
* [vcpkg formatting] Turn off DeriveLineEnding

* format

* Add newlines to the end of files

Since we're reformatting anyways
2020-07-14 08:50:19 -07:00

18 lines
563 B
C++

#pragma once
namespace vcpkg::Parse
{
struct TextRowCol
{
constexpr TextRowCol() noexcept = default;
constexpr TextRowCol(int row, int column) noexcept : row(row), column(column) { }
/// '0' indicates uninitialized; '1' is the first row.
int row = 0;
/// '0' indicates uninitialized; '1' is the first column.
int column = 0;
constexpr int row_or(int def) const noexcept { return row ? row : def; }
constexpr int column_or(int def) const noexcept { return column ? column : def; }
};
}