mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
use new macros to cleanup #ifndef NDEBUG as much as possible (libs edition)
This commit is contained in:
parent
0004ca2c41
commit
0d9656ef82
14 changed files with 49 additions and 91 deletions
|
|
@ -44,6 +44,9 @@
|
|||
#else
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#include "pbd/assert.h"
|
||||
|
||||
#include "smf.h"
|
||||
#include "smf_private.h"
|
||||
|
||||
|
|
@ -182,12 +185,7 @@ smf_add_track(smf_t *smf, smf_track_t *track)
|
|||
|
||||
if (smf->number_of_tracks > 1) {
|
||||
cantfail = smf_set_format(smf, 1);
|
||||
#ifndef NDEBUG
|
||||
assert(!cantfail);
|
||||
#else
|
||||
(void) cantfail;
|
||||
#endif
|
||||
|
||||
x_assert (cantfail, !cantfail);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue