Replace NOTREACHED() with DCHECK(false) in generated files (see #3500)

Restores the old behavior of assertion in Debug build only.
This commit is contained in:
Marshall Greenblatt
2023-05-08 18:15:02 +03:00
parent dc9e64308a
commit c18545a7f5
329 changed files with 694 additions and 694 deletions

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=6706f5bf43d926b749840fb27aa7931111f1a638$
// $hash=ccecac02125e1608fe96c9646b6d9529434396e9$
//
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
@ -39,7 +39,7 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
return 0;
}
if (!template_util::has_valid_size(cookie)) {
NOTREACHED() << "invalid cookie->[base.]size";
DCHECK(false) << "invalid cookie->[base.]size";
return 0;
}
// Verify param: deleteCookie; type: bool_byref
@ -89,7 +89,7 @@ CefRefPtr<CefCookieVisitor> CefCppToCRefCounted<
CefCookieVisitor,
cef_cookie_visitor_t>::UnwrapDerived(CefWrapperType type,
cef_cookie_visitor_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}