Properly link flecs library

This commit is contained in:
2023-11-09 11:38:29 +01:00
parent dc585396c3
commit 8edcf9305c
1392 changed files with 390081 additions and 164 deletions

View File

@@ -0,0 +1,68 @@
#ifndef META_H
#define META_H
/* This generated file contains includes for project dependencies */
#include <meta/bake_config.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Multiline strings */
#define HEAD
#define LINE "\n"
void _meta_test_struct(
ecs_world_t *world,
ecs_entity_t t,
ecs_size_t size,
ecs_size_t alignment);
void _meta_test_member(
ecs_world_t *world,
ecs_entity_t t,
const char *name,
ecs_entity_t type,
int32_t count,
ecs_size_t offset);
#define test_ok(expr)\
test_int((expr), 0)
#define test_fail(expr)\
test_int((expr), -1)
#define meta_test_struct(world, t, T)\
_meta_test_struct(world, t, ECS_SIZEOF(T), ECS_ALIGNOF(T))
#define meta_test_member(world, t, T, name, type, count)\
_meta_test_member(world, t, #name, type, count, offsetof(T, name))
typedef struct {
int32_t x, y;
} Position, Velocity;
typedef struct {
int32_t value;
} Mass;
typedef struct {
int32_t x, y;
} Point;
typedef struct {
Point start, stop;
} Line;
typedef struct {
int32_t x, y, z;
} Vec3;
void install_test_abort(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,25 @@
/*
)
(.)
.|.
| |
_.--| |--._
.-'; ;`-'& ; `&.
\ & ; & &_/
|"""---...---"""|
\ | | | | | | | /
`---.|.|.|.---'
* This file is generated by bake.lang.c for your convenience. Headers of
* dependencies will automatically show up in this file. Include bake_config.h
* in your main project file. Do not edit! */
#ifndef META_BAKE_CONFIG_H
#define META_BAKE_CONFIG_H
/* Headers of public dependencies */
#include <flecs.h>
#include <bake_test.h>
#endif