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,31 @@
#include <cpp_api.h>
#include <iostream>
// Helper to debug differences in function name strings across compilers
enum Color {
Red, Green, Blue
};
template <typename T>
static size_t pretty_type() {
std::cout << ECS_FUNC_NAME << std::endl;
return 0;
}
template <typename E, E C>
static size_t pretty_enum() {
std::cout << ECS_FUNC_NAME << std::endl;
return 0;
}
void PrettyFunction_component(void) {
pretty_type<Position>();
test_assert(true);
}
void PrettyFunction_enum(void) {
pretty_enum<Color, Color::Red>();
pretty_enum<Color, (Color)3>();
test_assert(true);
}