diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-10-21 11:56:41 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-10-21 11:56:41 -0300 |
commit | 988e86e134ba72d037d9967384085f09c03de43d (patch) | |
tree | 7c9e25c6c957b2248109795ab2f8e51f9031501f /tests | |
parent | a1ea10151397cefd86aa0f6c4822932d2cc6a601 (diff) |
added two new variables for the type system template system:
* %SELF, replaced by the variable name for the Python instance
of a class method
* %CPPOBJ, replaced by the pointer to the C++ object for the
Python instance associated with the method where it appears
the 'cpythonWrapperCPtr(const AbstractMetaClass*, QString)' method
was moved from CppGenerator to ShibokenGenerator to be available
for the type system variable replacement method;
the test bindings for the libsample's SimpleFile class was updated
to use the new type system variables
Diffstat (limited to 'tests')
-rw-r--r-- | tests/samplebinding/simplefile_glue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/simplefile_glue.cpp b/tests/samplebinding/simplefile_glue.cpp index 118ec945c..b055ce267 100644 --- a/tests/samplebinding/simplefile_glue.cpp +++ b/tests/samplebinding/simplefile_glue.cpp @@ -1,7 +1,7 @@ // native ending if (%0 == Py_False) { PyObject* error_msg = PyString_FromFormat( - "Could not open file: \"%s\"", PySimpleFile_cptr(self)->filename()); + "Could not open file: \"%s\"", %CPPOBJ->filename()); PyErr_SetObject(PyExc_IOError, error_msg); return 0; } |