Added MemcmpTest.cpp, InheritTest.cpp

This commit is contained in:
2025-01-26 10:20:33 +08:00
parent 1e6af4a59e
commit 39ae49171e
6 changed files with 53 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
#include<iostream>
#include<hgl/type/object/Object.h>
using namespace hgl;
class TestObject:public Object
{
public:
using Object::Object;
virtual ~TestObject()=default;
};
int main(int argc,char **)
{
NewObject(TestObject,to);
const auto &obi=to->GetObjectBaseInfo();
std::cout<<"file: "<<obi.scl.file<<std::endl
<<"line: "<<obi.scl.line<<std::endl
<<"func: "<<obi.scl.func<<std::endl;
return 0;
}