meta/test/main.cc
2024-03-06 08:55:49 +08:00

22 lines
644 B
C++

#include "runtime/meta_object_register.h"
#include "runtime/meta_utils.h"
#include <sled/log/log.h>
class Object : public meta::MetaObject {
public:
};
class ObjectRegister : public meta::MetaObjectRegister<Object> {};
int
main(int argc, char *argv[])
{
ObjectRegister register;
LOGV("", "{}", meta::GetMetaName<Object>());
LOGV("", "{}", meta::GetMetaName<meta::MetaObject>());
LOGV("", "{}", meta::GetMetaName<std::vector<int>>());
LOGV("", "{}", meta::GetMetaName<std::unordered_map<void **, const long &>>());
LOGV("", "{}", meta::GetMetaName<std::unordered_map<void **, const std::string &>>());
return 0;
}