updated Loginfo/Logger

This commit is contained in:
2024-12-24 23:17:24 +08:00
parent e416162a1e
commit 1d55597edd
5 changed files with 20 additions and 108 deletions

View File

@@ -1,15 +1,17 @@
#pragma once
#include<hgl/platform/Platform.h>
namespace hgl
{
struct SourceCodeLocation
{
const char * file; ///<源文件
const char * func; ///<函数
size_t line; ///<行号
const char * func; ///<函数
};
#define HGL_SOURCE_CODE_LOCATION __FILE__,__FUNCTION__,__LINE__
#define HGL_SOURCE_CODE_LOCATION __FILE__,__LINE__,__HGL_FUNC__
#define HGL_SCL_HERE SourceCodeLocation(HGL_SOURCE_CODE_LOCATION)
}//namespace hgl