mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-06 06:58:46 +00:00
13 lines
259 B
C++
13 lines
259 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
namespace error_handling {
|
|
|
|
inline void handle_general_error(const std::string &message) {
|
|
std::cerr << "\x1b[1;31mGeneral Error:\x1b[0m " << message << ".\n";
|
|
exit(1);
|
|
}
|
|
|
|
} // namespace error_handling
|