diff options
author | manojgudi | 2013-07-23 07:54:12 +0530 |
---|---|---|
committer | manojgudi | 2013-07-23 07:54:12 +0530 |
commit | 43114165fb5e59c4267991f4922970c897fe2d88 (patch) | |
tree | c4cd97ed682dd75c0efa8991243b04b13633e270 /deallocator.h | |
download | sciscipy-1.0.0-43114165fb5e59c4267991f4922970c897fe2d88.tar.gz sciscipy-1.0.0-43114165fb5e59c4267991f4922970c897fe2d88.tar.bz2 sciscipy-1.0.0-43114165fb5e59c4267991f4922970c897fe2d88.zip |
initial commit
Diffstat (limited to 'deallocator.h')
-rw-r--r-- | deallocator.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/deallocator.h b/deallocator.h new file mode 100644 index 0000000..06d5c0b --- /dev/null +++ b/deallocator.h @@ -0,0 +1,24 @@ +#ifndef _DEALLOCATOR_H +#define _DEALLOCATOR_H + +#include <Python.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
\ No newline at end of file |