Update: Change includes to point to the right place
This commit is contained in:
parent
c87b7d37fb
commit
cf562b26b0
10
test/main.c
10
test/main.c
|
|
@ -1,12 +1,12 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define BECS_MAX_ENTITIES 100
|
#define BECS_MAX_ENTITIES 100
|
||||||
#define BECS_MAX_COMPONENTS 2
|
#define BECS_MAX_COMPONENTS 2
|
||||||
|
|
||||||
#define BECS_IMPLEMENTATION
|
#define BECS_IMPLEMENTATION
|
||||||
#include "../becs3.h"
|
#include "../becs.h"
|
||||||
|
|
||||||
typedef struct compA {
|
typedef struct compA {
|
||||||
uint32_t thing;
|
uint32_t thing;
|
||||||
|
|
@ -29,7 +29,13 @@ int main(void) {
|
||||||
|
|
||||||
size_t MinMemorySize = BECS_GetMinMemoryArenaSize(componentSizes, 2);
|
size_t MinMemorySize = BECS_GetMinMemoryArenaSize(componentSizes, 2);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
printf("%llu\n", MinMemorySize);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNIX
|
||||||
printf("%lu\n", MinMemorySize);
|
printf("%lu\n", MinMemorySize);
|
||||||
|
#endif
|
||||||
|
|
||||||
void *memory= malloc(MinMemorySize);
|
void *memory= malloc(MinMemorySize);
|
||||||
BECS_ECS ecs = BECS_InitECS(memory, MinMemorySize);
|
BECS_ECS ecs = BECS_InitECS(memory, MinMemorySize);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue