* ./hurricane/src/isobar:
- Bug: In PyHurricane, PyTypeViaLayer was *not* reference incremented, causing the type to be desallocated when the Python interpreter was finalizing. This was causing <isis> to fail.
This commit is contained in:
parent
daf77b9deb
commit
d9eb8a1b6a
|
@ -727,8 +727,10 @@ extern "C" {
|
|||
PyModule_AddObject ( module, "DiffusionLayer" , (PyObject*)&PyTypeDiffusionLayer );
|
||||
Py_INCREF ( &PyTypeTransistorLayer );
|
||||
PyModule_AddObject ( module, "TransistorLayer" , (PyObject*)&PyTypeTransistorLayer );
|
||||
Py_INCREF ( &PyTypeContactLayer );
|
||||
Py_INCREF ( &PyTypeViaLayer );
|
||||
PyModule_AddObject ( module, "ViaLayer" , (PyObject*)&PyTypeViaLayer );
|
||||
Py_INCREF ( &PyTypeContactLayer );
|
||||
PyModule_AddObject ( module, "ContactLayer" , (PyObject*)&PyTypeContactLayer );
|
||||
Py_INCREF ( &PyTypeNetExternalComponents );
|
||||
PyModule_AddObject ( module, "NetExternalComponents", (PyObject*)&PyTypeNetExternalComponents );
|
||||
Py_INCREF ( &PyTypeUpdateSession );
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
#ifndef __PYHURRICANE__
|
||||
#define __PYHURRICANE__
|
||||
|
||||
// Enable Python debugging.
|
||||
// #define DEBUG 1
|
||||
|
||||
#include "Python.h"
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
|
Loading…
Reference in New Issue