mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-07 15:38:47 +00:00
const -> let
This commit is contained in:
parent
3ae6ed079d
commit
189306df26
33 changed files with 406 additions and 285 deletions
|
|
@ -22,4 +22,12 @@ inline T Read() {
|
|||
return value;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline void Error(const T& value) { // only for strings ??
|
||||
std::cout << "\x1b[1;33mError:\x1b[0m ";
|
||||
std::cout << value;
|
||||
std::cout << '\n';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
} // namespace info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue