2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

Move Python string helper to the correct location

This commit is contained in:
2012-12-18 18:01:56 -08:00
parent 9f276e2c57
commit e0e141fd01
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,8 @@ plString PyString_AsStringEx(PyObject* obj);
bool PyString_CheckEx(PyObject* obj); bool PyString_CheckEx(PyObject* obj);
PyObject* PyUnicode_FromStringEx(const plString& str); 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 // A set of macros to take at least some of the tediousness out of creating straight python glue code
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////

View File

@ -219,7 +219,6 @@ PYTHON_METHOD_DEFINITION(ptSimpleStateVariable, setBool, args)
PYTHON_RETURN_BOOL(self->fThis->SetBool(val != 0, idx)); 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(getByte, GetByte, PyInt_FromLong)
STATEVAR_GET(getShort, GetShort, PyInt_FromLong) STATEVAR_GET(getShort, GetShort, PyInt_FromLong)
STATEVAR_GET(getInt, GetInt, PyInt_FromLong) STATEVAR_GET(getInt, GetInt, PyInt_FromLong)