mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* rulesets/ArithmeticScript.h, rulesets/PythonArithmeticScript.h, rulesets/PythonArithmeticScript.cpp: Stub classes for handling adding a script to handle Statistics.
15 lines
388 B
C++
15 lines
388 B
C++
// This file may be redistributed and modified only under the terms of
|
|
// the GNU General Public License (See COPYING for details).
|
|
// Copyright (C) 2005 Alistair Riddoch
|
|
|
|
#include <Python.h>
|
|
#include "PythonArithmeticScript.h"
|
|
|
|
PythonArithmeticScript::PythonArithmeticScript(PyObject * o) : m_script(o)
|
|
{
|
|
}
|
|
|
|
PythonArithmeticScript::~PythonArithmeticScript()
|
|
{
|
|
Py_DECREF(m_script);
|
|
}
|