swig/SWIG/Tools/WAD/Python/wadpyinit.cxx
Dave Beazley f9e5fdc9dd Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@1062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2001-03-23 21:37:23 +00:00

29 lines
710 B
C++

/* -----------------------------------------------------------------------------
* wadpyinit.cxx
*
* C++ automatic initializer for Python module.
*
* Author(s) : David Beazley (beazley@cs.uchicago.edu)
*
* Copyright (C) 2000. The University of Chicago. All rights reserved.
* ----------------------------------------------------------------------------- */
#include "wad.h"
static char cvs[] = "$Header$";
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;