Browse Source

Expose shared_ptr to swig

Possibly not the right way to go about it but technically works
newinvert
mitxela 3 years ago
committed by Jon Evans
parent
commit
182abd4652
  1. 5
      pcbnew/netinfo.h

5
pcbnew/netinfo.h

@ -111,6 +111,11 @@ public:
*/
NETCLASS* GetNetClass() { return m_netClass.get(); }
/**
* @note Slow version for swig access
*/
std::shared_ptr<NETCLASS> GetNetClassSlow() { return m_netClass; }
int GetNetCode() const { return m_netCode; }
void SetNetCode( int aNetCode ) { m_netCode = aNetCode; }

Loading…
Cancel
Save