|
|
@ -4,6 +4,8 @@ |
|
|
#include "common.h" |
|
|
#include "common.h" |
|
|
#include <stdarg.h> // 必须包含此头文件以使用变参宏 |
|
|
#include <stdarg.h> // 必须包含此头文件以使用变参宏 |
|
|
|
|
|
|
|
|
|
|
|
static char g_sBuildTime[64] = {0}; |
|
|
|
|
|
|
|
|
WEAK void elog_output(uint8_t level, const char *tag, const char *file, const char *func, long line, const char *format, ...) |
|
|
WEAK void elog_output(uint8_t level, const char *tag, const char *file, const char *func, long line, const char *format, ...) |
|
|
{ |
|
|
{ |
|
|
#ifdef BUILD_COMMON |
|
|
#ifdef BUILD_COMMON |
|
|
@ -93,3 +95,8 @@ int Rd_RegularFileExists(const char *_psPath) |
|
|
return (stat(_psPath, &sb) == 0) && S_ISREG(sb.st_mode); |
|
|
return (stat(_psPath, &sb) == 0) && S_ISREG(sb.st_mode); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
char *Rd_GetBuildTime(void) |
|
|
|
|
|
{ |
|
|
|
|
|
snprintf(g_sBuildTime, sizeof(g_sBuildTime), "%s %s", __DATE__, __TIME__); |
|
|
|
|
|
return g_sBuildTime; |
|
|
|
|
|
} |