|
Leonardus
|
Implementation of error handling. More...
#include <string>#include <cstdlib>#include <unistd.h>#include <cstring>#include "dry.h"#include "error.h"#include "interpreter.h"
Include dependency graph for error.cpp:Functions | |
| void | opErrExit (OpError p_err, const std::string &p_details, const std::source_location p_location) |
| Operator error message to interpreter cout_ and exit( EC_OPERATOR ). | |
| void | inErrExit (InError p_err, const std::string &p_details, const std::source_location p_location) |
| Interpreter error message to interpreter cout_ and exit( EC_INTERPRETER / EC_CMDLINE ). | |
| void | panicExit () |
| Panic exit( EC_PANIC ). | |
Implementation of error handling.
Leonardus, a minimalist stack-based programming system. Copyright (C) 2025 Andreas Muckenschnabel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.