zengine/game/zworld/editor/zworld_editor.cpp

23 lines
564 B
C++
Raw Normal View History

2024-08-24 18:01:53 +08:00
#define ZLIB_API
#define ZLIB_API_VAL
2024-10-25 09:45:49 +08:00
#define CORE_API
#define CORE_API_VAL
#include "archive/json.h"
#include "test_refl.h"
using namespace api;
2024-10-25 22:57:25 +08:00
using namespace std;
using namespace refl;
2024-10-27 22:37:35 +08:00
template<typename T>
void print_name() {
2024-10-30 15:15:25 +08:00
auto sf = refl::TStr{ "S" };
auto sf2 = refl::TStr{ "void" };
2024-10-27 22:37:35 +08:00
auto aguid = meta_name<T>();
auto bguid = aguid.view();
std::cout << bguid << std::endl;
}
2024-08-24 18:01:53 +08:00
int main() {
2024-10-30 15:15:25 +08:00
constexpr auto aa = refl::detail::num_name<32>();
print_name<float[4]>();
2024-10-27 22:37:35 +08:00
print_name<decltype(&api::Guid::Multy)>();
2024-08-24 18:01:53 +08:00
std::cout << "hello world" << std::endl;
}