CMCore/inc/hgl/SourceCodeLocation.h
2024-11-19 00:32:32 +08:00

14 lines
330 B
C++

#pragma once
namespace hgl
{
struct SourceCodeLocation
{
const char * file; ///<源文件
const char * func; ///<函数
size_t line; ///<行号
};
#define HGL_SOURCE_CODE_LOCATION __FILE__,__FUNCTION__,__LINE__
}//namespace hgl