Turn on the asserts in ringbuf for debug builds

This commit is contained in:
Kovid Goyal 2020-12-11 21:26:15 +05:30
parent bffe0f4a6c
commit 4cf5bd8d70
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 0 deletions

View File

@ -13,7 +13,9 @@
* <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#ifndef KITTY_DEBUG_BUILD
#define NDEBUG 1
#endif
#include "ringbuf.h"
#include <stdint.h>

View File

@ -304,6 +304,9 @@ def init_env(
cflags.append('-flto')
ldflags.append('-flto')
if debug:
cflags.append('-DKITTY_DEBUG_BUILD')
if profile:
cppflags.append('-DWITH_PROFILER')
cflags.append('-g3')