- work on actions
[vuplus_dvbapp] / lib / base / smartptr.h
index 906bba6..159eeb2 100644 (file)
@@ -4,6 +4,14 @@
 #include "object.h"
 #include <stdio.h>
 
+#ifdef SWIG
+#define TEMPLATE_TYPEDEF(x, y) \
+%template(y) x; \
+typedef x y
+#else
+#define TEMPLATE_TYPEDEF(x, y) typedef x y
+#endif
+
 template<class T>
 class ePtr
 {