Use the new PIKE_MODULE_INIT and PIKE_MODULE_EXIT macros for the module
initialization (and finalization) function declarations. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4218 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f1d92dac92
commit
172f4767fa
1 changed files with 4 additions and 5 deletions
|
|
@ -12,10 +12,8 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
#include "global.h"
|
||||
#include "module.h"
|
||||
#include "interpret.h"
|
||||
|
||||
/* This must be included last! */
|
||||
#include "module_magic.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
@ -323,12 +321,13 @@ extern "C" {
|
|||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
SWIGEXPORT(void) pike_module_exit(void) {}
|
||||
PIKE_MODULE_EXIT {}
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
SWIGEXPORT(void) pike_module_init(void) {
|
||||
PIKE_MODULE_INIT
|
||||
{
|
||||
struct program *pr;
|
||||
int i;
|
||||
for (i = 0; swig_types_initial[i]; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue