We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32c0578 + 5da94d6 commit 129eb14Copy full SHA for 129eb14
src/Design.cc
@@ -20,6 +20,7 @@
20
#include "ord/OpenRoad.hh"
21
#include "ord/Tech.h"
22
#include "tcl.h"
23
+#include "tclDecls.h"
24
#include "utl/Logger.h"
25
26
namespace ord {
@@ -136,6 +137,7 @@ std::string Design::evalTclString(const std::string& cmd)
136
137
ord::OpenRoad::setOpenRoad(openroad, /* reinit_ok */ true);
138
Tcl_Interp* tcl_interp = openroad->tclInterp();
139
sta::Sta::setSta(openroad->getSta());
140
+ Tcl_SetAssocData(tcl_interp, "design", nullptr, this);
141
Tcl_Eval(tcl_interp, cmd.c_str());
142
return std::string(Tcl_GetStringResult(tcl_interp));
143
}
0 commit comments