aboutsummaryrefslogtreecommitdiff
path: root/lib/python/swig.h
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-08-17 02:13:50 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-08-17 02:13:50 +0000
commit779cb6e326391280631d0b486957d5e576eb23ea (patch)
tree1ef8cd024822d9317e0965439a8fbd3bb7074962 /lib/python/swig.h
parenta29d455a1f7860faa7ca1f36586bfc6f6f3337c5 (diff)
downloadenigma2-779cb6e326391280631d0b486957d5e576eb23ea.tar.gz
enigma2-779cb6e326391280631d0b486957d5e576eb23ea.zip
- factor out some SWIG macros
Diffstat (limited to 'lib/python/swig.h')
-rw-r--r--lib/python/swig.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/python/swig.h b/lib/python/swig.h
new file mode 100644
index 00000000..b5cb77af
--- /dev/null
+++ b/lib/python/swig.h
@@ -0,0 +1,20 @@
+#ifndef __lib_python_swig_h
+#define __lib_python_swig_h
+
+#ifdef SWIG
+#define TEMPLATE_TYPEDEF(x, y) \
+%template(y) x; \
+typedef x y
+#else
+#define TEMPLATE_TYPEDEF(x, y) typedef x y
+#endif
+
+#ifdef SWIG
+#define SWIG_INPUT INPUT
+#define SWIG_OUTPUT OUTPUT
+#else
+#define SWIG_INPUT
+#define SWIG_OUTPUT
+#endif
+
+#endif