#include "refl/vertex.h" #include "refl/std/sarray.h" #include int main() { auto cls1 = &TypeInfo::StaticClass; auto cls2 = &TypeInfo::StaticClass; using type1 = real_type_t; auto& cls = TypeInfo::StaticClass; auto field = cls.GetField(GetStaticFieldID("norm")); auto ov = cls.New(); int x = 10; field->Call(&vec3::norm, ov.ptr, x, x); field->Invoke({ov.ptr, x, x}); std::vector ArgsList{{}, ov.ptr, x, x}; field->Invoke(ArgsList); sarray sa(ArgsList); field->Invoke(sa); UMethod_Auto::Call(field, { ov.ptr, x, x }); //fetchUMethod(&vec3::norm)->Call(field, ov.ptr, x, &x); std::cout << "hello world\n"; return 0; }