Implement String structure and update Location/Token to use it
This commit is contained in:
@@ -24,6 +24,9 @@ void log_error(const char* msg);
|
||||
/**
|
||||
* Logs a pretty error with additional information about the line where the error occurred.
|
||||
*
|
||||
* The @p msg parameter can contain format specifiers like printf, and the additional arguments will be formatted into the message.
|
||||
* It additionally supports the `%S` format specifier, which can be used to format a `String` structure from `string.h`.
|
||||
*
|
||||
* @param loc The location where the error occurred.
|
||||
* @param to_column The column number where the error ends.
|
||||
* @param msg The error message to log. This can contain format specifiers like printf, and the additional arguments will be formatted into the message.
|
||||
|
||||
Reference in New Issue
Block a user