src/common.h : Add macro SF_ASSERT.

This commit is contained in:
Erik de Castro Lopo 2010-06-09 20:47:07 +10:00
parent 70b4f49f85
commit 58f9151396
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-06-09 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/common.h
Add macro SF_ASSERT.
2010-05-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* configure.ac

View File

@ -109,6 +109,14 @@
#define SF_MAX_CHANNELS 256
#define SF_ASSERT(expr) \
{ if (! (expr)) \
{ printf ("%s %d : assert '" #expr "' failed!\n", __FILE__, __LINE__) ;\
exit (1) ; \
} ;\
}
/*
* Macros for spliting the format file of SF_INFI into contrainer type,
** codec type and endian-ness.
@ -117,7 +125,6 @@
#define SF_CODEC(x) ((x) & SF_FORMAT_SUBMASK)
#define SF_ENDIAN(x) ((x) & SF_FORMAT_ENDMASK)
enum
{ /* PEAK chunk location. */
SF_PEAK_START = 42,