CMCore/inc/hgl/SourceCodeLocation.h

18 lines
439 B
C
Raw Normal View History

#pragma once
2024-12-24 23:17:24 +08:00
#include<hgl/platform/Platform.h>
namespace hgl
{
struct SourceCodeLocation
{
const char * file; ///<源文件
size_t line; ///<行号
2024-12-24 23:17:24 +08:00
const char * func; ///<函数
};
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)
}//namespace hgl