Improve the comment about MOZ_COUNT_CTOR/DTOR, text mostly by bent

no bug, DONTBUILD, landed on a CLOSED TREE
This commit is contained in:
Ehsan Akhgari 2014-04-11 15:41:22 -04:00
Родитель bc39621b6b
Коммит 187792e965
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -75,8 +75,9 @@ private:
#define NS_LOG_RELEASE(_p, _rc, _type) \
NS_LogRelease((_p), (_rc), (_type))
// Note that the following constructor/destructor logging macros
// should only be used in non-refcounted objects.
// Note that the following constructor/destructor logging macros are redundant
// for refcounted objects that log via the NS_LOG_ADDREF/NS_LOG_RELEASE macros.
// Refcount logging is preferred.
#define MOZ_COUNT_CTOR(_type) \
do { \
NS_LogCtor((void*)this, #_type, sizeof(*this)); \