retroseq~/Source/retroseq~common.c
void *new_memory(long nbytes)
{
#ifdef TARGET_IS_MAX
    t_ptr pointer = sysmem_newptr(nbytes);
#elif TARGET_IS_PD
    void *pointer = getbytes(nbytes);
#endif

    if (pointer == NULL) {
        error("retroseq~ • Cannot allocate memory for this object");
        return NULL;
    }
    return pointer;
}
/* The 'new' and 'delete' pointers utility functions **************************/
The 'new' and 'delete' pointers utility functions
The ' new ' and ' delete ' pointers utility functions
void *new_memory(long nbytes)
{
#ifdef TARGET_IS_MAX
    t_ptr pointer = sysmem_newptr(nbytes);
#elif TARGET_IS_PD
    void *pointer = getbytes(nbytes);
#endif
    if (pointer == NULL) {
        error("retroseq~ • Cannot allocate memory for this object");
        return NULL;
    }
    return pointer;
}
void * new_memory ( long nbytes ) { #ifdef TARGET_IS_MAX t_ptr pointer = sysmem_newptr ( nbytes ) ; #elif TARGET_IS_PD void * pointer = getbytes ( nbytes ) ; #endif if ( pointer == NULL ) { error ( " ; return NULL ; } return pointer ; }
The 'new' and 'delete' pointers utility functions
The ' new ' and ' delete ' pointers utility functions