Better logging in tokenstream

This commit is contained in:
2026-04-24 20:40:31 +02:00
parent 451a9a2a22
commit 0306530fe8
8 changed files with 58 additions and 17 deletions
+3 -2
View File
@@ -27,8 +27,9 @@ void log_error(const char* msg);
* @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.
* @param msg The error message to log. This can contain format specifiers like printf, and the additional arguments will be formatted into the message.
* @param ... Additional arguments to format into the error message.
*/
void log_on_line(const char* filename, const char* line_text, int line, int from, int to, const char* msg);
void log_on_line(const char* filename, const char* line_text, int line, int from, int to, const char* msg, ...);
#endif