Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: Source/modules/webdatabase/sqlite/SQLiteStatement.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webdatabase/sqlite/SQLiteStatement.h ('k') | Source/platform/LayoutUnit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/sqlite/SQLiteStatement.cpp
diff --git a/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp b/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp
index 3ae9f8156db5bb107e2e591d172621c8aacf7e95..61c35d4ed2b44ef8c1db18fcf2a8d27beb028f74 100644
--- a/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp
+++ b/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp
@@ -44,7 +44,7 @@ SQLiteStatement::SQLiteStatement(SQLiteDatabase& db, const String& sql)
: m_database(db)
, m_query(sql)
, m_statement(0)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_isPrepared(false)
#endif
{
@@ -80,7 +80,7 @@ int SQLiteStatement::prepare()
else if (tail && *tail)
error = SQLITE_ERROR;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_isPrepared = error == SQLITE_OK;
#endif
return error;
@@ -113,7 +113,7 @@ int SQLiteStatement::step()
int SQLiteStatement::finalize()
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_isPrepared = false;
#endif
if (!m_statement)
« no previous file with comments | « Source/modules/webdatabase/sqlite/SQLiteStatement.h ('k') | Source/platform/LayoutUnit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698