git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
37 lines
881 B
C
37 lines
881 B
C
/* -----------------------------------------------------------------------------
|
|
* init.c
|
|
*
|
|
* Initialize built-in SWIG modules.
|
|
*
|
|
* Author(s) : David Beazley (beazley@cs.uchicago.edu)
|
|
*
|
|
* Copyright (C) 1999-2000. The University of Chicago
|
|
* See the file LICENSE for information on usage and redistribution.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#include "swig.h"
|
|
|
|
extern void testmodule();
|
|
|
|
static void (*modules[])(void) = {
|
|
testmodule,
|
|
0
|
|
};
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* init_modules()
|
|
*
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
void init_modules() {
|
|
int i = 0;
|
|
while (modules[i]) {
|
|
(*modules[i])();
|
|
i++;
|
|
}
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
init_modules();
|
|
return Swig_main(argc, argv);
|
|
}
|