Add log framework

This commit is contained in:
2026-04-24 15:14:15 +02:00
parent 78899f32a6
commit 0e826e05e1
5 changed files with 62 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
/**
* Contains the logging framework used for logging errors during compilation.
*/
#ifndef LOG_H
#define LOG_H
/**
* A method that can log an error.
*/
typedef void LogError(const char* msg);
/**
* Sets the destination for log errors.
*/
void log_set_output(LogError* destination);
/**
* Logs an error to the destination.
*/
void log_error(const char* msg);
#endif