Use DCHECK_IS_ON() instead of !NDEBUG for debug logic (issue #1961)

This commit is contained in:
Marshall Greenblatt
2016-09-01 14:24:30 +03:00
parent ad1619dbd7
commit 5068b50b48
278 changed files with 320 additions and 525 deletions

View File

@@ -121,7 +121,7 @@ template<> CefRefPtr<CefBoxLayout> CefCppToC<CefBoxLayoutCppToC, CefBoxLayout,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefBoxLayoutCppToC, CefBoxLayout,
cef_box_layout_t>::DebugObjCt = 0;
#endif

View File

@@ -967,7 +967,7 @@ template<> CefRefPtr<CefBrowserView> CefCppToC<CefBrowserViewCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefBrowserViewCppToC, CefBrowserView,
cef_browser_view_t>::DebugObjCt = 0;
#endif

View File

@@ -302,7 +302,7 @@ template<> CefRefPtr<CefBrowserViewDelegate> CefCppToC<CefBrowserViewDelegateCpp
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate, cef_browser_view_delegate_t>::DebugObjCt = 0;
#endif

View File

@@ -966,7 +966,7 @@ template<> CefRefPtr<CefButton> CefCppToC<CefButtonCppToC, CefButton,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefButtonCppToC, CefButton,
cef_button_t>::DebugObjCt = 0;
#endif

View File

@@ -200,7 +200,7 @@ template<> CefRefPtr<CefButtonDelegate> CefCppToC<CefButtonDelegateCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefButtonDelegateCppToC,
CefButtonDelegate, cef_button_delegate_t>::DebugObjCt = 0;
#endif

View File

@@ -255,7 +255,7 @@ template<> CefRefPtr<CefDisplay> CefCppToC<CefDisplayCppToC, CefDisplay,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefDisplayCppToC, CefDisplay,
cef_display_t>::DebugObjCt = 0;
#endif

View File

@@ -83,7 +83,7 @@ template<> CefRefPtr<CefFillLayout> CefCppToC<CefFillLayoutCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefFillLayoutCppToC, CefFillLayout,
cef_fill_layout_t>::DebugObjCt = 0;
#endif

View File

@@ -1208,7 +1208,7 @@ template<> CefRefPtr<CefLabelButton> CefCppToC<CefLabelButtonCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefLabelButtonCppToC, CefLabelButton,
cef_label_button_t>::DebugObjCt = 0;
#endif

View File

@@ -86,7 +86,7 @@ template<> CefRefPtr<CefLayout> CefCppToC<CefLayoutCppToC, CefLayout,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefLayoutCppToC, CefLayout,
cef_layout_t>::DebugObjCt = 0;
#endif

View File

@@ -1243,7 +1243,7 @@ template<> CefRefPtr<CefMenuButton> CefCppToC<CefMenuButtonCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefMenuButtonCppToC, CefMenuButton,
cef_menu_button_t>::DebugObjCt = 0;
#endif

View File

@@ -229,7 +229,7 @@ template<> CefRefPtr<CefMenuButtonDelegate> CefCppToC<CefMenuButtonDelegateCppTo
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate, cef_menu_button_delegate_t>::DebugObjCt = 0;
#endif

View File

@@ -1104,7 +1104,7 @@ template<> CefRefPtr<CefPanel> CefCppToC<CefPanelCppToC, CefPanel,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefPanelCppToC, CefPanel,
cef_panel_t>::DebugObjCt = 0;
#endif

View File

@@ -181,7 +181,7 @@ template<> CefRefPtr<CefPanelDelegate> CefCppToC<CefPanelDelegateCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefPanelDelegateCppToC,
CefPanelDelegate, cef_panel_delegate_t>::DebugObjCt = 0;
#endif

View File

@@ -1026,7 +1026,7 @@ template<> CefRefPtr<CefScrollView> CefCppToC<CefScrollViewCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefScrollViewCppToC, CefScrollView,
cef_scroll_view_t>::DebugObjCt = 0;
#endif

View File

@@ -1422,7 +1422,7 @@ template<> CefRefPtr<CefTextfield> CefCppToC<CefTextfieldCppToC, CefTextfield,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefTextfieldCppToC, CefTextfield,
cef_textfield_t>::DebugObjCt = 0;
#endif

View File

@@ -228,7 +228,7 @@ template<> CefRefPtr<CefTextfieldDelegate> CefCppToC<CefTextfieldDelegateCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefTextfieldDelegateCppToC,
CefTextfieldDelegate, cef_textfield_delegate_t>::DebugObjCt = 0;
#endif

View File

@@ -860,7 +860,7 @@ template<> CefRefPtr<CefView> CefCppToC<CefViewCppToC, CefView,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefViewCppToC, CefView,
cef_view_t>::DebugObjCt = 0;
#endif

View File

@@ -198,7 +198,7 @@ template<> CefRefPtr<CefViewDelegate> CefCppToC<CefViewDelegateCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefViewDelegateCppToC,
CefViewDelegate, cef_view_delegate_t>::DebugObjCt = 0;
#endif

View File

@@ -1622,7 +1622,7 @@ template<> CefRefPtr<CefWindow> CefCppToC<CefWindowCppToC, CefWindow,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefWindowCppToC, CefWindow,
cef_window_t>::DebugObjCt = 0;
#endif

View File

@@ -320,7 +320,7 @@ template<> CefRefPtr<CefWindowDelegate> CefCppToC<CefWindowDelegateCppToC,
return NULL;
}
#ifndef NDEBUG
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToC<CefWindowDelegateCppToC,
CefWindowDelegate, cef_window_delegate_t>::DebugObjCt = 0;
#endif