*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@1018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0b563336fd
commit
6ad55444c1
6 changed files with 93 additions and 76 deletions
28
Tools/WAD/Python/wadpyinit.cxx
Normal file
28
Tools/WAD/Python/wadpyinit.cxx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
* wadpyinit.cxx
|
||||
*
|
||||
* C++ automatic initializer for Python module.
|
||||
*
|
||||
* Author(s) : David Beazley (beazley@cs.uchicago.edu)
|
||||
*
|
||||
* Copyright (C) 2000. The University of Chicago
|
||||
* See the file LICENSE for information on usage and redistribution.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#include "wad.h"
|
||||
|
||||
extern "C" void pywadinit();
|
||||
|
||||
/* This hack is used to auto-initialize wad regardless of whether we are
|
||||
used as an imported module or as a link-library for another module */
|
||||
|
||||
class wadinitializer {
|
||||
public:
|
||||
wadinitializer() {
|
||||
pywadinit();
|
||||
}
|
||||
};
|
||||
|
||||
static wadinitializer wi;
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue