Work around SWIG problems

This commit is contained in:
Jon Evans 2024-03-27 18:42:30 -04:00
parent e98c9f283f
commit e347300593
1 changed files with 7 additions and 0 deletions

View File

@ -324,6 +324,13 @@ public:
const MARKERS& Markers() const { return m_markers; }
// SWIG requires non-const accessors for some reason to make the custom iterators in board.i
// work. It would be good to remove this if we can figure out how to fix that.
#ifdef SWIG
DRAWINGS& Drawings() { return m_drawings; }
TRACKS& Tracks() { return m_tracks; }
#endif
const BOARD_ITEM_SET GetItemSet();
/**