summaryrefslogtreecommitdiff
path: root/Lib/director_common.swg
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2015-03-12 19:51:11 +1300
committerOlly Betts <olly@survex.com>2015-03-12 19:51:11 +1300
commit7ba06526776274d779fb12636e1ab7e4063c0f72 (patch)
tree93d891abd218ed8cfd37f515d4f0d87f5ca93939 /Lib/director_common.swg
parentc4268c369b7890fa518b5040098a552c04580d86 (diff)
downloadswig-7ba06526776274d779fb12636e1ab7e4063c0f72.tar.gz
Create director_common.swg for language-indep code
Move -DSWIG_DIRECTOR_STATIC handling there, so this is now supported for all languages with director support, not just Python and PHP.
Diffstat (limited to 'Lib/director_common.swg')
-rw-r--r--Lib/director_common.swg15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/director_common.swg b/Lib/director_common.swg
new file mode 100644
index 000000000..9ce93c7e7
--- /dev/null
+++ b/Lib/director_common.swg
@@ -0,0 +1,15 @@
+/* -----------------------------------------------------------------------------
+ * director_common.swg
+ *
+ * This file contains support for director classes which is common between
+ * languages.
+ * ----------------------------------------------------------------------------- */
+
+/*
+ Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
+ 'Swig' namespace. This could be useful for multi-modules projects.
+*/
+#ifdef SWIG_DIRECTOR_STATIC
+/* Force anonymous (static) namespace */
+#define Swig
+#endif