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/SWIG@4218 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
01533f8c6e
commit
c2f148c725
1 changed files with 4 additions and 5 deletions
|
|
@ -12,10 +12,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
#include "module.h"
|
||||||
#include "interpret.h"
|
#include "interpret.h"
|
||||||
|
|
||||||
/* This must be included last! */
|
|
||||||
#include "module_magic.h"
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -323,12 +321,13 @@ extern "C" {
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
#endif
|
#endif
|
||||||
SWIGEXPORT(void) pike_module_exit(void) {}
|
PIKE_MODULE_EXIT {}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
#endif
|
#endif
|
||||||
SWIGEXPORT(void) pike_module_init(void) {
|
PIKE_MODULE_INIT
|
||||||
|
{
|
||||||
struct program *pr;
|
struct program *pr;
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; swig_types_initial[i]; i++) {
|
for (i = 0; swig_types_initial[i]; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue