Move __HGL_FUNC__ to Platform.h from LogInfo.h

This commit is contained in:
hyzboy 2024-07-16 23:15:09 +08:00
parent 0f236d9bc0
commit 417e7fb002
3 changed files with 10 additions and 8 deletions

View File

@ -4,14 +4,6 @@
#include<iostream> #include<iostream>
#include<hgl/CodePage.h> #include<hgl/CodePage.h>
#if (HGL_COMPILER == HGL_COMPILER_GNU)||(HGL_COMPILER == HGL_COMPILER_LLVM)
#define __HGL_FUNC__ __PRETTY_FUNCTION__
#elif HGL_COMPILER == HGL_COMPILER_Microsoft
#define __HGL_FUNC__ __FUNCSIG__
#else
#define __HGL_FUNC__ __FUNCTION__
#endif//
namespace hgl namespace hgl
{ {
namespace logger namespace logger

View File

@ -268,5 +268,13 @@ namespace hgl
#else #else
#define HGL_INCORRECT_DIRECTORY_SEPARATOR OS_TEXT('\\') #define HGL_INCORRECT_DIRECTORY_SEPARATOR OS_TEXT('\\')
#endif// #endif//
#if (HGL_COMPILER == HGL_COMPILER_GNU)||(HGL_COMPILER == HGL_COMPILER_LLVM)
#define __HGL_FUNC__ __PRETTY_FUNCTION__
#elif HGL_COMPILER == HGL_COMPILER_Microsoft
#define __HGL_FUNC__ __FUNCSIG__
#else
#define __HGL_FUNC__ __FUNCTION__
#endif//
}//namespace hgl }//namespace hgl
#endif//HGL_PLATFORM_INCLUDE #endif//HGL_PLATFORM_INCLUDE

View File

@ -47,4 +47,6 @@ namespace hgl
virtual ~IDObject()=default; virtual ~IDObject()=default;
}; };
#define HGL_IDOBJECT IDObject<__COUNTER__>
}//namespace hgl }//namespace hgl