- Add SWIG_RUNTIME_VERSION to new type sharing code. This is for future-proof, if
the format of swig_type_info ever changes, this number should be incremented - Add SWIG_LINK_RUNTIME and SWIG_STATIC_RUNTIME symbols to python - Convert inline into SWIGINLINE git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cb3ef63778
commit
b83fe6bd77
14 changed files with 140 additions and 41 deletions
24
SWIG/Lib/linkruntime.c
Normal file
24
SWIG/Lib/linkruntime.c
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
||||
# if defined(_MSC_VER) || defined(__GNUC__)
|
||||
# if defined(STATIC_LINKED)
|
||||
# define SWIGEXPORT(a) a
|
||||
# else
|
||||
# define SWIGEXPORT(a) __declspec(dllexport) a
|
||||
# endif
|
||||
# else
|
||||
# if defined(__BORLANDC__)
|
||||
# define SWIGEXPORT(a) a _export
|
||||
# else
|
||||
# define SWIGEXPORT(a) a
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# define SWIGEXPORT(a) a
|
||||
#endif
|
||||
|
||||
static void *ptr = 0;
|
||||
SWIGEXPORT(void *)
|
||||
SWIG_ReturnGlobalTypeList(void *t) {
|
||||
if (!ptr) ptr = t;
|
||||
return ptr;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue