zengine-old/engine/3rdparty/zlib/test/refl_01.cpp

28 lines
469 B
C++
Raw Normal View History

2024-04-11 10:13:15 +08:00
#include "refl/vertex.h"
2024-04-13 17:47:44 +08:00
union MemberMethod {
using F1 = int(*)(int);
using F2 = void(*)();
F1 f1;
F2 f2;
constexpr MemberMethod(F1 f):f1(f) {
2024-04-11 10:13:15 +08:00
}
2024-04-13 17:47:44 +08:00
constexpr MemberMethod(F2 f) :f2(f) {
2024-04-11 10:13:15 +08:00
}
2024-04-13 17:47:44 +08:00
};
void test() {
2024-04-11 10:13:15 +08:00
}
2024-04-13 17:47:44 +08:00
template<typename T>
void print(T* t) {
2024-04-09 22:26:33 +08:00
2024-04-13 17:47:44 +08:00
}
int main() {
//auto& cls = TypeInfo<vec3>::StaticClass;
//int FList[3]{};
//auto norm = MakeMethodField(&vec3::norm,"norm");
MakeStaticFields(vec3::__GetFields());
std::cout << "hello world\n";
return 0;
}