2024-10-05 22:14:04 +08:00
|
|
|
#pragma once
|
|
|
|
|
2024-12-24 23:17:24 +08:00
|
|
|
#include<hgl/platform/Platform.h>
|
|
|
|
|
2024-10-05 22:14:04 +08:00
|
|
|
namespace hgl
|
|
|
|
{
|
|
|
|
struct SourceCodeLocation
|
|
|
|
{
|
|
|
|
const char * file; ///<源文件
|
|
|
|
size_t line; ///<行号
|
2024-12-24 23:17:24 +08:00
|
|
|
const char * func; ///<函数
|
2024-10-05 22:14:04 +08:00
|
|
|
};
|
|
|
|
|
2024-12-24 23:17:24 +08:00
|
|
|
#define HGL_SOURCE_CODE_LOCATION __FILE__,__LINE__,__HGL_FUNC__
|
2024-11-26 00:42:36 +08:00
|
|
|
|
|
|
|
#define HGL_SCL_HERE SourceCodeLocation(HGL_SOURCE_CODE_LOCATION)
|
2024-10-05 22:14:04 +08:00
|
|
|
}//namespace hgl
|