diff options
author | Olly Betts <olly@survex.com> | 2015-03-12 19:51:11 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2015-03-12 19:51:11 +1300 |
commit | 7ba06526776274d779fb12636e1ab7e4063c0f72 (patch) | |
tree | 93d891abd218ed8cfd37f515d4f0d87f5ca93939 /Lib/director_common.swg | |
parent | c4268c369b7890fa518b5040098a552c04580d86 (diff) | |
download | swig-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.swg | 15 |
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 |