File insertion now data-driven via %insert.
Using %define for multiline defines. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b8b42a3598
commit
74ac578ba8
3 changed files with 29 additions and 33 deletions
|
|
@ -230,6 +230,7 @@ GUILE::set_init (char *iname)
|
|||
void
|
||||
GUILE::headers (void)
|
||||
{
|
||||
Printf(f_runtime, "/* -*- buffer-read-only: t -*- */\n");
|
||||
Swig_banner (f_runtime);
|
||||
|
||||
Printf (f_runtime, "/* Implementation : GUILE */\n\n");
|
||||
|
|
@ -239,19 +240,6 @@ GUILE::headers (void)
|
|||
if (NoInclude) {
|
||||
Printf(f_runtime, "#define SWIG_NOINCLUDE\n");
|
||||
}
|
||||
if (Swig_insert_file ("guiledec.swg", f_runtime) == -1) {
|
||||
Printf (stderr, "SWIG : Fatal error. ");
|
||||
Printf (stderr, "Unable to locate 'guiledec.swg' in SWIG library.\n");
|
||||
SWIG_exit (1);
|
||||
}
|
||||
if (!NoInclude) {
|
||||
// Write out function definitions
|
||||
if (Swig_insert_file ("guile.swg", f_runtime) == -1) {
|
||||
Printf (stderr, "SWIG : Fatal error. ");
|
||||
Printf (stderr, "Unable to locate 'guile.swg' in SWIG library.\n");
|
||||
SWIG_exit (1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue