2025-12-25 22:37:40 +11:00
|
|
|
#ifndef ERROR_H
|
|
|
|
|
#define ERROR_H
|
|
|
|
|
|
2025-12-24 13:15:48 +11:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace Solstice {
|
|
|
|
|
namespace Error {
|
2025-12-25 22:37:40 +11:00
|
|
|
[[noreturn]] void syntaxError(std::string what, int line = 0, std::string lineContent = "");
|
|
|
|
|
[[noreturn]] void typingError(std::string what, int line = 0, std::string lineContent = "");
|
2025-12-24 13:15:48 +11:00
|
|
|
}
|
|
|
|
|
}
|
2025-12-25 22:37:40 +11:00
|
|
|
|
|
|
|
|
#endif
|