Token refactor and better logs
This commit is contained in:
@@ -19,4 +19,16 @@ void log_set_output(LogError* destination);
|
||||
*/
|
||||
void log_error(const char* msg);
|
||||
|
||||
/**
|
||||
* Logs a pretty error with additional information about the line where the error occurred.
|
||||
*
|
||||
* @param filename The name of the file where the error occurred.
|
||||
* @param line_text The entire line of text where the error occurred.
|
||||
* @param line The line number where the error occurred.
|
||||
* @param from The column number where the error starts.
|
||||
* @param to The column number where the error ends.
|
||||
* @param msg The error message to log.
|
||||
*/
|
||||
void log_on_line(const char* filename, const char* line_text, int line, int from, int to, const char* msg);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user