多行宏

This commit is contained in:
zogodo
2020-02-08 22:04:20 +08:00
parent df22816687
commit 2cf0aba49e
12 changed files with 16 additions and 16 deletions

View File

@@ -37,7 +37,7 @@
#include "http_server/web_log.h"
#if OTA_DEBUG
#define ota_server_log(M, ...) custom_log("OTA", M, ##__VA_ARGS__); web_log(M, ##__VA_ARGS__)
#define ota_server_log(M, ...) do { custom_log("OTA", M, ##__VA_ARGS__); web_log(M, ##__VA_ARGS__) } while(0)
#else
#define ota_server_log(M, ...)
#endif