updated Loginfo/Logger
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user