Changeset 855947d for src


Ignore:
Timestamp:
Jan 7, 2019, 10:51:34 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn_org, feature/crepe_org
Children:
096a174
Parents:
f3848c0
Message:

[aubio_priv] add AUBIO_ASSERT_EQUAL_SHAPE helper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    rf3848c0 r855947d  
    400400#define AUBIO_GOTO_FAILURE(x) if (!(x)) goto failure
    401401
     402#define AUBIO_ASSERT_EQUAL_SHAPE(t1, t2) { \
     403    AUBIO_ASSERT(t1 && t2); \
     404    AUBIO_ASSERT(t1->ndim == t2->ndim); \
     405    uint_t nn; \
     406    for (nn = 0; nn < t1->ndim; nn++) \
     407      AUBIO_ASSERT(t1->shape[nn] == t2->shape[nn]); \
     408    }
     409
    402410#endif /* AUBIO_PRIV_H */
Note: See TracChangeset for help on using the changeset viewer.