Add log framework
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user