log functions and working opengl context on windows

This commit is contained in:
2026-06-26 23:38:56 +03:00
parent 4b1ade6464
commit cf4a087dc3
5 changed files with 145 additions and 41 deletions

12
src/log.h Normal file
View 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_