7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 22:23:43 +00:00

Add SWIG mirroring defs

This commit is contained in:
Seth Hillbrand 2024-12-23 08:56:46 -08:00
parent a6c55ee473
commit 67c72cbb7a
2 changed files with 31 additions and 0 deletions
common/swig

View File

@ -160,6 +160,9 @@ typedef long time_t;
// std::optional type mappings
%include optional.i
// Mirror defs
%include mirror.i
// ignore warning relative to operator = and operator ++:
#pragma SWIG nowarn=362,383

28
common/swig/mirror.i Normal file
View File

@ -0,0 +1,28 @@
/*
* This file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2024 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
%include core/mirror.h
%{
#include <core/mirror.h>
%}