mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
src/common.h : Add macro SF_ASSERT.
This commit is contained in:
parent
70b4f49f85
commit
58f9151396
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user