mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-16 21:25:46 +01:00
move /src/error.? to /src/util/error.?
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "../error.h"
|
||||
#include "../types.h"
|
||||
#include "../util/error.h"
|
||||
|
||||
#define SECTOR 0x1000 // sector size
|
||||
#define TABLE 0x800 // table (total) element count
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include <glad/gl.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../error.h"
|
||||
#include "../types.h"
|
||||
#include "../util/error.h"
|
||||
#include "shader.h"
|
||||
|
||||
#define VERTC 3
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "../error.h"
|
||||
#include "../util/error.h"
|
||||
|
||||
|
||||
// NOTE: we are currently just sucking up the memory costs for ease. We can either include the source files themselves. Or use compression, where I'd prefer the latter for ease of installation.
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include <assert.h>
|
||||
#include <glad/gl.h>
|
||||
|
||||
#include "../error.h"
|
||||
#include "../types.h"
|
||||
#include "../util/error.h"
|
||||
#include "input.h"
|
||||
#include "render.h"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "error.h"
|
||||
#include "io/window.h"
|
||||
#include "util/error.h"
|
||||
|
||||
/* reroutes GLFW errors to our logging system. */
|
||||
static void error_callback(int err, const char *const msg) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "../types.h"
|
||||
#include "../error.h"
|
||||
#include "../util/error.h"
|
||||
#include "atrb.h"
|
||||
|
||||
int conf_procbuf(const char *restrict buf, char *restrict kout, char *restrict vout, usize len) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "../types.h"
|
||||
|
||||
static void error_log(FILE *restrict stream, const char *restrict pfx, uint ln, const char *restrict file, const char *restrict fmt, va_list ap) {
|
||||
fprintf(stream, "(%s:%u) [%s] '", file, ln, pfx);
|
||||
@@ -5,9 +5,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "util/atrb.h"
|
||||
#include "util/macro.h"
|
||||
#include "../types.h"
|
||||
#include "../util/atrb.h"
|
||||
#include "../util/macro.h"
|
||||
|
||||
void error_debug(uint ln, const char *restrict file, const char *restrict fmt, ...);
|
||||
void error_info(uint ln, const char *restrict file, const char *restrict fmt, ...);
|
||||
Reference in New Issue
Block a user