Declare initialization function in runtime section.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
88c47f1f45
commit
f05199ab6b
1 changed files with 2 additions and 0 deletions
|
|
@ -256,10 +256,12 @@ GUILE::initialize (void)
|
||||||
case GUILE_LSTYLE_SIMPLE:
|
case GUILE_LSTYLE_SIMPLE:
|
||||||
/* Simple linkage; we have to export the SWIG_init function. The user can
|
/* Simple linkage; we have to export the SWIG_init function. The user can
|
||||||
rename the function by a #define. */
|
rename the function by a #define. */
|
||||||
|
Printf (f_runtime, "extern void\nSWIG_init (void)\n;\n");
|
||||||
Printf (f_init, "extern void\nSWIG_init (void)\n{\n");
|
Printf (f_init, "extern void\nSWIG_init (void)\n{\n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Other linkage; we make the SWIG_init function static */
|
/* Other linkage; we make the SWIG_init function static */
|
||||||
|
Printf (f_runtime, "static void\nSWIG_init (void)\n;\n");
|
||||||
Printf (f_init, "static void\nSWIG_init (void)\n{\n");
|
Printf (f_init, "static void\nSWIG_init (void)\n{\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue