diff --git a/Sources/Plasma/FeatureLib/pfPython/pyGlueHelpers.h b/Sources/Plasma/FeatureLib/pfPython/pyGlueHelpers.h index 78df4f4d..517cce70 100644 --- a/Sources/Plasma/FeatureLib/pfPython/pyGlueHelpers.h +++ b/Sources/Plasma/FeatureLib/pfPython/pyGlueHelpers.h @@ -53,6 +53,8 @@ plString PyString_AsStringEx(PyObject* obj); bool PyString_CheckEx(PyObject* obj); PyObject* PyUnicode_FromStringEx(const plString& str); +#define PyString_FromPlString(x) PyString_FromString((x).c_str()) + // A set of macros to take at least some of the tediousness out of creating straight python glue code ///////////////////////////////////////////////////////////////////// diff --git a/Sources/Plasma/FeatureLib/pfPython/pySDLGlue.cpp b/Sources/Plasma/FeatureLib/pfPython/pySDLGlue.cpp index 6c21de2b..428c0b4c 100644 --- a/Sources/Plasma/FeatureLib/pfPython/pySDLGlue.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/pySDLGlue.cpp @@ -219,7 +219,6 @@ PYTHON_METHOD_DEFINITION(ptSimpleStateVariable, setBool, args) PYTHON_RETURN_BOOL(self->fThis->SetBool(val != 0, idx)); } -#define PyString_FromPlString(x) PyString_FromString((x).c_str()) STATEVAR_GET(getByte, GetByte, PyInt_FromLong) STATEVAR_GET(getShort, GetShort, PyInt_FromLong) STATEVAR_GET(getInt, GetInt, PyInt_FromLong)