forked from solstice/solstice
Better errors, comments
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Solstice {
|
||||
namespace Error {
|
||||
[[noreturn]] void syntaxError(std::string what);
|
||||
[[noreturn]] void typingError(std::string what);
|
||||
[[noreturn]] void syntaxError(std::string what, int line = 0, std::string lineContent = "");
|
||||
[[noreturn]] void typingError(std::string what, int line = 0, std::string lineContent = "");
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user