提交 cdba1b3c authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Be careful with MS_XXXX macros

上级 cbf71235
...@@ -123,8 +123,8 @@ public: ...@@ -123,8 +123,8 @@ public:
} \ } \
while (0) while (0)
#else #else
#define MS_TRACE() #define MS_TRACE() ;
#define MS_TRACE_STD() #define MS_TRACE_STD() ;
#endif #endif
#define MS_DEBUG_TAG(tag, desc, ...) \ #define MS_DEBUG_TAG(tag, desc, ...) \
...@@ -260,10 +260,10 @@ public: ...@@ -260,10 +260,10 @@ public:
} \ } \
while (0) while (0)
#else #else
#define MS_DEBUG_DEV(desc, ...) #define MS_DEBUG_DEV(desc, ...) ;
#define MS_DEBUG_DEV_STD(desc, ...) #define MS_DEBUG_DEV_STD(desc, ...) ;
#define MS_WARN_DEV(desc, ...) #define MS_WARN_DEV(desc, ...) ;
#define MS_WARN_DEV_STD(desc, ...) #define MS_WARN_DEV_STD(desc, ...) ;
#endif #endif
#define MS_ERROR(desc, ...) \ #define MS_ERROR(desc, ...) \
......
...@@ -64,7 +64,9 @@ uint64_t DepLibUV::GetTime() ...@@ -64,7 +64,9 @@ uint64_t DepLibUV::GetTime()
// TODO: Remove. // TODO: Remove.
if (DepLibUV::timeUpdateCounter == 0) if (DepLibUV::timeUpdateCounter == 0)
{
MS_DEBUG_DEV("now - LAST_NOW: %" PRIu64 "ms", uv_now(DepLibUV::loop) - LAST_NOW); MS_DEBUG_DEV("now - LAST_NOW: %" PRIu64 "ms", uv_now(DepLibUV::loop) - LAST_NOW);
}
// Update the libuv's concept of “now” every N usages. // Update the libuv's concept of “now” every N usages.
if (++DepLibUV::timeUpdateCounter == maxTimeCounter) if (++DepLibUV::timeUpdateCounter == maxTimeCounter)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论