Changeset ab59067 for interfaces


Ignore:
Timestamp:
Jul 15, 2012, 11:08:19 PM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
d81cae3
Parents:
c997036
Message:

aubiowraphell.h: add remove unused AUBIO_NEW, set expection and string when new_aubio_ returns NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/aubiowraphell.h

    rc997036 rab59067  
    88} Py_## NAME;
    99
    10 #define AUBIO_NEW(NAME) \
    11 static PyObject * \
    12 Py_ ## NAME ## _new (PyTypeObject * type, PyObject * args, PyObject * kwds) \
    13 { \
    14   Py_ ## NAME * self; \
    15   self = (Py_ ## NAME *) type->tp_alloc (type, 0); \
    16   return (PyObject *)self; \
    17 }
    18 
    1910#define AUBIO_INIT(NAME, PARAMS... ) \
    2011static int \
     
    2314  self->o = new_aubio_## NAME ( PARAMS ); \
    2415  if (self->o == NULL) { \
     16    PyErr_SetString (PyExc_StandardError, "error creating object"); \
    2517    return -1; \
    2618  } \
Note: See TracChangeset for help on using the changeset viewer.