Token refactor and better logs

This commit is contained in:
2026-04-24 20:28:08 +02:00
parent da3425ec10
commit 451a9a2a22
9 changed files with 210 additions and 122 deletions
+12
View File
@@ -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