diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-14 18:08:44 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-14 18:08:44 +0200 |
| commit | a32a61813ebaecf0c1e69fd1481bf09d8c8b1420 (patch) | |
| tree | ecfb6140075e3c46b599755e220dbf560de2e31d /boot/result.cc | |
| parent | 51e2f98e33ae10fc3052335cc6847bc93d0784fa (diff) | |
| download | elna-a32a61813ebaecf0c1e69fd1481bf09d8c8b1420.tar.gz | |
Support more floating point literals
Diffstat (limited to 'boot/result.cc')
| -rw-r--r-- | boot/result.cc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/boot/result.cc b/boot/result.cc index 2222bd5..90d0ad6 100644 --- a/boot/result.cc +++ b/boot/result.cc @@ -19,19 +19,24 @@ along with GCC; see the file COPYING3. If not see namespace elna::boot { - error::error(const struct position position) - : position(position) + location::location(std::size_t line, std::size_t column) + : line(line), column(column) { } - std::size_t error::line() const noexcept + bool location::available() const { - return this->position.line; + return this->line != 0 || this->column != 0; } - std::size_t error::column() const noexcept + position::position(location start, location end) + : start(start), end(end) + { + } + + error::error(const struct position position) + : position(position) { - return this->position.column; } std::deque<std::unique_ptr<error>>& error_container::errors() |
