mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
Fix warning message arguments
This commit is contained in:
parent
5de12ee2f7
commit
8421e8fb03
@ -71,7 +71,7 @@ void compilationError(const std::string &msg, const std::string &file, int line,
|
|||||||
void compilationWarning(const std::string &msg, const std::string &file, int line,
|
void compilationWarning(const std::string &msg, const std::string &file, int line,
|
||||||
int col, int len, int errorCode, bool terminate,
|
int col, int len, int errorCode, bool terminate,
|
||||||
MessageGroupPos pos) {
|
MessageGroupPos pos) {
|
||||||
compilationMessage("\033[1;33mwarning:\033[0m", msg, file, line, col, errorCode, len,
|
compilationMessage("\033[1;33mwarning:\033[0m", msg, file, line, col, len, errorCode,
|
||||||
pos);
|
pos);
|
||||||
if (terminate)
|
if (terminate)
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
@ -158,11 +158,11 @@ enum MessageGroupPos {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void compilationError(const std::string &msg, const std::string &file = "",
|
void compilationError(const std::string &msg, const std::string &file = "",
|
||||||
int line = 0, int col = 0, int len = 0, int erroCode = -1,
|
int line = 0, int col = 0, int len = 0, int errorCode = -1,
|
||||||
bool terminate = true, MessageGroupPos pos = NONE);
|
bool terminate = true, MessageGroupPos pos = NONE);
|
||||||
|
|
||||||
void compilationWarning(const std::string &msg, const std::string &file = "",
|
void compilationWarning(const std::string &msg, const std::string &file = "",
|
||||||
int line = 0, int col = 0, int len = 0, int erroCode = -1,
|
int line = 0, int col = 0, int len = 0, int errorCode = -1,
|
||||||
bool terminate = false, MessageGroupPos pos = NONE);
|
bool terminate = false, MessageGroupPos pos = NONE);
|
||||||
|
|
||||||
} // namespace codon
|
} // namespace codon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user