Raw File
Regionalmodule.cc
// -*- C++ -*-
// 
//  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 
//                               Michael A.G. Aivazis
//                        California Institute of Technology
//                        (C) 1998-2003 All Rights Reserved
// 
//  <LicenseText>
// 
//  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 

#include <portinfo>

#include <Python.h>

#include "exceptions.h"
#include "bindings.h"


char pyCitcomSRegional_module__doc__[] = "";

// Initialization function for the module (*must* be called initCitcomSRegional)
extern "C"
void
initCitcomSRegional()
{
    // create the module and add the functions
    PyObject * m = Py_InitModule4(
        "CitcomSRegional", pyCitcomSRegional_methods,
        pyCitcomSRegional_module__doc__, 0, PYTHON_API_VERSION);

    // get its dictionary
    PyObject * d = PyModule_GetDict(m);

    // check for errors
    if (PyErr_Occurred()) {
        Py_FatalError("can't initialize module CitcomSRegional");
    }

    // install the module exceptions
    pyCitcomSRegional_runtimeError = PyErr_NewException("CitcomSRegional.runtime", 0, 0);
    PyDict_SetItemString(d, "RuntimeException", pyCitcomSRegional_runtimeError);

    return;
}

// version
// $Id: Regionalmodule.cc,v 1.1.1.1 2003/03/24 01:46:37 tan2 Exp $

// End of file
back to top