优化 web_log

This commit is contained in:
zogodo
2020-01-12 13:18:31 +08:00
parent cdbabf672b
commit e7814de6fd
4 changed files with 10 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ extern time_t now;
extern char time_buf[];
void SetLogRecord(LogRecord* lr, char* log);
char* GetLogRecord(int idx);
char* GetLogRecord();
#define web_log(format, ...) \
LOG_TMP = (char*)malloc(sizeof(char)*LOG_LEN); \