summaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2013-04-30 13:45:48 +0200
committerMichael Andres <ma@suse.de>2013-04-30 13:45:48 +0200
commitfa4f0252f27fab99db4ad665a549e8a5ba04a63b (patch)
tree1233911a1f1430f77e96e1eafffba04eafb49f6b /swig
parent05eb87243d28be648e59508edc03fe275e76dcfa (diff)
downloadlibzypp-bindings-fa4f0252f27fab99db4ad665a549e8a5ba04a63b.tar.gz
libzypp-bindings-fa4f0252f27fab99db4ad665a549e8a5ba04a63b.tar.bz2
libzypp-bindings-fa4f0252f27fab99db4ad665a549e8a5ba04a63b.zip
Try to disable stuff swig seems to be unable to parse (rvalue references, noexcept)
Diffstat (limited to 'swig')
-rw-r--r--swig/zypp.i16
1 files changed, 11 insertions, 5 deletions
diff --git a/swig/zypp.i b/swig/zypp.i
index 6aab2bd..96b0ac7 100644
--- a/swig/zypp.i
+++ b/swig/zypp.i
@@ -15,6 +15,12 @@
%}
#endif
+// stuff swig seems to be unable to parse
+#define BOOST_NOEXCEPT
+#define BOOST_NO_CXX11_NOEXCEPT
+#define BOOST_NO_CXX11_RVALUE_REFERENCES
+#define BOOST_NO_CXX11_SMART_PTR
+
%{
/* Includes the header in the wrapper code */
#ifdef SWIGRUBY
@@ -27,7 +33,7 @@
/*
* type definitions to keep the C code generic
*/
-
+
#if defined(SWIGPYTHON)
#define Target_Null_p(x) (x == Py_None)
#define Target_INCREF(x) Py_INCREF(x)
@@ -54,8 +60,8 @@
#if defined(SWIGRUBY)
#define Target_Null_p(x) NIL_P(x)
-#define Target_INCREF(x)
-#define Target_DECREF(x)
+#define Target_INCREF(x)
+#define Target_DECREF(x)
#define Target_True Qtrue
#define Target_False Qfalse
#define Target_Null Qnil
@@ -87,8 +93,8 @@ SWIGINTERNINLINE SV *SWIG_FromCharPtr(const char *cptr);
SWIGINTERNINLINE SV *SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value);
#define Target_Null_p(x) (x == NULL)
-#define Target_INCREF(x)
-#define Target_DECREF(x)
+#define Target_INCREF(x)
+#define Target_DECREF(x)
#define Target_True (&PL_sv_yes)
#define Target_False (&PL_sv_no)
#define Target_Null NULL