log functions and working opengl context on windows
This commit is contained in:
12
src/log.h
Normal file
12
src/log.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef LOG_H_
|
||||
#define LOG_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define LOG_ERROR(str) log_error(__FILE__, __LINE__, (str))
|
||||
#define LOG_ERRORF(fmt, ...) log_errorf(__FILE__, __LINE__, (fmt), __VA_ARGS__)
|
||||
|
||||
void log_error(char* file, size_t line, char* str);
|
||||
void log_errorf(char* file, size_t line, char* fmt, ...);
|
||||
|
||||
#endif // LOG_H_
|
||||
Reference in New Issue
Block a user