Skip to content

Commit b957afe

Browse files
committed
Undo change to dbtypes.i and add %clear directive to PdnGen-py.i
Signed-off-by: Don MacMillen <[email protected]>
1 parent 4ca2391 commit b957afe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/odb/src/swig/python/dbtypes.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217

218218
// Handle return by ref.
219219
%apply int &OUTPUT { int & overhang1, int & overhang2 };
220+
%apply int &OUTPUT { int & x, int & y };
220221
%apply int &OUTPUT { int & x_spacing, int & y_spacing };
221222
WRAP_OBJECT_RETURN_REF(odb::Rect, r)
222223
WRAP_OBJECT_RETURN_REF(odb::Rect, rect)

src/pdn/src/PdnGen-py.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ using namespace pdn;
6666
%apply unsigned long { ExtensionMode };
6767

6868
%import "odb.i"
69-
%import "dbtypes.i"
69+
%clear int & x, int & y; // defined in dbtypes.i, must be cleared here.
7070
%include <std_string.i>
7171

7272
// These are needed to coax swig into sending or returning Python

0 commit comments

Comments
 (0)