progress
This commit is contained in:
@@ -2,10 +2,14 @@
|
||||
#define LOG_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define LOG_ERROR(str) log_error(__FILE__, __LINE__, (str))
|
||||
#define LOG_ERRORF(fmt, ...) log_errorf(__FILE__, __LINE__, (fmt), __VA_ARGS__)
|
||||
|
||||
#define LOG_FATAL(str) LOG_ERROR(str); exit(-1);
|
||||
#define LOG_FATALF(fmt, ...) LOG_ERRORF(fmt, __VA_ARGS__); exit(-1);
|
||||
|
||||
void log_error(char* file, size_t line, char* str);
|
||||
void log_errorf(char* file, size_t line, char* fmt, ...);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user