Skip to content

Commit

Permalink
undef NDEBUG when compiling to self-test
Browse files Browse the repository at this point in the history
  • Loading branch information
gpakosz committed Aug 13, 2013
1 parent 69878b8 commit 842321f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PackedArray.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ uint32_t PackedArray_bufferSize(const PackedArray* a)

#if defined(PACKEDARRAY_SELF_TEST)

#undef NDEBUG // we want asserts
#include <assert.h>

#include <stdio.h>
#include <string.h> // memcmp

Expand Down
3 changes: 3 additions & 0 deletions PackedArraySIMD.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,9 @@ uint32_t PackedArray_bufferSize(const PackedArray* a)

#if defined(PACKEDARRAY_SELF_TEST)

#undef NDEBUG // we want asserts
#include <assert.h>

#include <stdio.h>
#include <string.h> // memcmp

Expand Down

0 comments on commit 842321f

Please sign in to comment.