summaryrefslogtreecommitdiff
path: root/include/handler_ername.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-08-29 13:10:40 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-08-29 13:13:17 +0300
commite50b2bdbcf045e46d1a84ffeb9872d81e3aa5eff (patch)
treea6e8b1fae0fa313d05682901cf022ff3bd0dffe7 /include/handler_ername.h
parent1a3c36595320bd4cf94ba5ab6c5127129269af67 (diff)
downloadmariadb-git-bb-10.3-MDEV-20425.tar.gz
MDEV-20425 Implement Boolean debug build option debug_assertbb-10.3-MDEV-20425
Commit 536215e32fc43aa423684e9807640dcf3453924b in MariaDB Server 10.3.1 introduced the compiler flag (not cmake option) DBUG_ASSERT_AS_PRINTF that converts DBUG_ASSERT in non-debug builds into printouts. For debug builds, it could be useful to be able to convert DBUG_ASSERT into a warning or error printout, to allow execution to continue. This would allow debug builds to be used for reproducing hard failures that occur with release builds. my_assert: A Boolean flag (set by default), tied to the new option debug_assert that is available on debug builds only. When set, DBUG_ASSERT() will invoke assert(), like it did until now. When unset, DBUG_ASSERT() will invoke fprintf(stderr, ...) with the file name, line number and assertion expression.
Diffstat (limited to 'include/handler_ername.h')
0 files changed, 0 insertions, 0 deletions