Marko Mäkelä
e50b2bdbcf
MDEV-20425 Implement Boolean debug build option debug_assert
...
Commit 536215e32f 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.
2019-08-29 13:13:17 +03:00
..
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 19:25:02 +03:00
2019-05-13 17:54:04 +03:00
2019-05-11 19:25:02 +03:00
2019-05-11 19:25:02 +03:00
2019-05-13 17:54:04 +03:00
2019-05-13 17:54:04 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 18:30:45 +03:00
2019-05-14 17:18:46 +03:00
2019-06-25 13:21:36 +03:00
2018-09-28 16:37:06 +02:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 19:25:02 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2018-01-23 13:06:39 +01:00
2019-07-02 17:46:22 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-06-14 07:36:47 +02:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-06-27 10:53:18 +03:00
2019-05-11 22:19:05 +03:00
2019-08-29 13:13:17 +03:00
2019-05-13 17:54:04 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-08-29 13:13:17 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 22:19:05 +03:00
2019-05-13 17:54:04 +03:00
2019-05-14 17:18:46 +03:00
2019-08-29 13:13:17 +03:00
2019-08-29 12:00:12 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-08-13 19:28:51 +03:00
2019-05-11 22:19:05 +03:00
2019-06-25 13:21:36 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-05-13 17:54:04 +03:00
2019-05-13 17:54:04 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 22:19:05 +03:00
2017-12-09 23:34:43 +00:00
2019-05-14 17:18:46 +03:00
2019-02-19 17:41:13 +02:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2018-04-05 15:26:57 +04:00
2019-05-11 21:29:06 +03:00
2019-05-13 17:54:04 +03:00
2017-11-01 13:20:32 +00:00
2019-05-13 17:54:04 +03:00
2018-09-08 20:36:31 +01:00
2019-05-11 22:19:05 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-13 17:54:04 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-05-14 17:18:46 +03:00