Use the `SWIG_NOINCLUDE' preprocessor symbol to indicate that

SWIG runtime functions are imported from a different module, as
it is done in other language modules.  This primarily affects
the preprocessor symbol `SWIGSTATIC'.

(SWIG_init): Make this function globally visible only in simple
linkage (the user should rename the function by a #define in
this case).  In other linkages, this func is static.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-04-12 11:27:47 +00:00
commit a7a9b355b9

View file

@ -16,12 +16,12 @@
extern "C" {
#endif
#ifdef SWIG_GLOBAL
#define SWIGSTATIC
#endif
#ifndef SWIGSTATIC
#define SWIGSTATIC static
#if defined(SWIG_NOINCLUDE)
# define SWIGSTATIC
#elif defined(SWIG_GLOBAL)
# define SWIGSTATIC
#else
# define SWIGSTATIC static
#endif
#define GH_NOT_PASSED SCM_UNDEFINED
@ -57,11 +57,13 @@ SWIGSTATIC
void SWIG_RegisterMapping (char *origtype, char *newtype,
void *(*cast)(void *));
/* Register SWIG smobs with Guile */
SWIGSTATIC
void SWIG_Guile_Init();
SWIGSTATIC
void SWIG_init();
/* Initialization function for this SWIG module; actually renamed by a
#define */
/* extern void SWIG_init(); */
/* OBSOLESCENT functions (from swigptr.swg, still used unless -with-smobs) */