This commit is contained in:
2025-01-05 12:51:17 +00:00
parent 2daee71548
commit 595259b2cc
10 changed files with 106 additions and 105 deletions

View File

@@ -1,6 +1,5 @@
#include <iostream>
#include <ostream>
#include <unistd.h> // TODO(djledda): get outta here
#include <math.h>
#include <string.h>
#include "core.h"
@@ -93,7 +92,7 @@ void zeroList(list<T> *list) {
memset(list->data, 0, list->head * sizeof(T));
}
inline string operator""_s(const char *cstrLiteral, unsigned long length) {
inline string operator""_s(const char *cstrLiteral, size_t length) {
return {
(char *)cstrLiteral,
length,

View File

@@ -151,7 +151,7 @@ struct string {
#define strlit(lit) (string{(char *)(lit), sizeof(lit) - 1})
#define PushString(arena, length) (string{ (char *)pushSize(arena, length), (length) })
string operator""_s(const char *cstrLiteral, unsigned long length);
string operator""_s(const char *cstrLiteral, size_t length);
// C Strings
const char *cstring(Arena *arena, list<char> buf);

View File

@@ -86,7 +86,7 @@ GLAPI int gladLoadGL(void);
GLAPI int gladLoadGLLoader(GLADloadproc);
#include <KHR/khrplatform.h>
#include "../KHR/khrplatform.h"
typedef unsigned int GLenum;
typedef unsigned char GLboolean;
typedef unsigned int GLbitfield;