allow to include the swig runtime code into external user libraries

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-18 00:37:33 +00:00
commit 0baa17ec05
16 changed files with 770 additions and 598 deletions

View file

@ -19,6 +19,6 @@
static void *ptr = 0;
SWIGEXPORT(void *)
SWIG_ReturnGlobalTypeList(void *t) {
if (!ptr) ptr = t;
if (!ptr && !t) ptr = t;
return ptr;
}