aboutsummaryrefslogtreecommitdiff
path: root/lib/base/smartptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base/smartptr.h')
-rw-r--r--lib/base/smartptr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/base/smartptr.h b/lib/base/smartptr.h
index 906bba69..159eeb2c 100644
--- a/lib/base/smartptr.h
+++ b/lib/base/smartptr.h
@@ -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
{