Uniform handling of SWIGEXPORT across SWIG.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
27270d050d
commit
c25d1c8e35
8 changed files with 20 additions and 51 deletions
|
|
@ -446,7 +446,7 @@ public:
|
|||
"#ifdef __cplusplus\n",
|
||||
"extern \"C\"\n",
|
||||
"#endif\n",
|
||||
"SWIGEXPORT(void) Init_", feature, "(void) {\n",
|
||||
"SWIGEXPORT void Init_", feature, "(void) {\n",
|
||||
"int i;\n",
|
||||
"\n",
|
||||
NIL);
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ public:
|
|||
Printf(f_init,"return TCL_OK;\n}\n");
|
||||
|
||||
if (!nosafe) {
|
||||
Printf(f_init,"SWIGEXPORT(int) %(title)s_SafeInit(Tcl_Interp *interp) {\n", module );
|
||||
Printf(f_init,"SWIGEXPORT int %(title)s_SafeInit(Tcl_Interp *interp) {\n", module );
|
||||
Printf(f_init," return SWIG_init(interp);\n");
|
||||
Printf(f_init,"}\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue