put a FLAC__ASSERT wrapper around assert()

This commit is contained in:
Josh Coalson
2001-05-31 20:11:02 +00:00
parent 88f94d0fb3
commit 1b68982b0e
25 changed files with 337 additions and 308 deletions

View File

@@ -17,13 +17,13 @@
* Boston, MA 02111-1307, USA.
*/
#include <assert.h>
#include "private/bitmath.h"
#include "FLAC/assert.h"
unsigned FLAC__bitmath_ilog2(unsigned v)
{
unsigned l = 0;
assert(v > 0);
FLAC__ASSERT(v > 0);
while(v >>= 1)
l++;
return l;