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:
Logan Johnson 2002-12-20 17:35:51 +00:00
commit 172f4767fa

View file

@ -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++) {