remove few codes from _Object.h

This commit is contained in:
hyzboy 2024-10-05 21:41:35 +08:00
parent 518de25a94
commit afa80ed4de

View File

@ -1,8 +1,5 @@
#pragma once #pragma once
#include <typeindex>
#include <typeinfo>
namespace hgl namespace hgl
{ {
/** /**
@ -10,9 +7,6 @@ namespace hgl
*/ */
class _Object ///最终基类 class _Object ///最终基类
{ {
private:
unsigned int object_attribute_bits=0; ///<对象属性位集合
public: public:
@ -38,7 +32,4 @@ namespace hgl
//此代码取自AngelScript感谢 //此代码取自AngelScript感谢
#define GetMemberFuncPointer(c,m) MethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m)) #define GetMemberFuncPointer(c,m) MethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
template<typename T> inline constexpr const size_t GetTypeHash(){return typeid(T).hash_code();} ///<取得一个类型的哈希值
template<typename T> inline constexpr const char * GetTypeName(){return typeid(T).name();} ///<取得一个类型的名称
}//namespace hgl }//namespace hgl