mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Move Python string helper to the correct location
This commit is contained in:
@ -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
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user