Skip to content

Commit a9b634c

Browse files
author
Clement Champetier
committed
SWIG: add avOperator.i to suppress swig warnings
* operator= => "__assign__" in python. * operator= => "clone" in java.
1 parent 2297872 commit a9b634c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/AvTranscoder/avTranscoder.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
%include "AvTranscoder/swig/avMediaType.i"
1414
%include "AvTranscoder/swig/avRational.i"
1515
%include "AvTranscoder/swig/avLogLevel.i"
16+
%include "AvTranscoder/swig/avOperator.i"
1617

1718
%{
1819
#include <AvTranscoder/Library.hpp>

src/AvTranscoder/swig/avOperator.i

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#if SWIGPYTHON
2+
%rename(__assign__) *::operator=;
3+
#endif
4+
5+
#if SWIGJAVA
6+
%rename(clone) *::operator=;
7+
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy