summaryrefslogtreecommitdiff
path: root/deallocator.h
blob: eec7a1763452ba44cd5451ba0b098acae01e2bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _DEALLOCATOR_H
#define _DEALLOCATOR_H

#include <Python.h>
#include <api_common.h>

#if NUMPY == 1
#include <numpy/arrayobject.h>


#define DEBUG_MEM_ALLOC	0

struct _MyDeallocStruct
{
	PyObject_HEAD
	void *memory ;
} ;


extern struct _MyDeallocStruct _MyDeallocObject ; 
extern PyTypeObject _MyDeallocType ;
extern void attach_deallocator(PyObject *, void *) ;

#endif
#endif