diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-13 18:32:27 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-13 18:32:27 -0300 |
commit | cfae5701b16e057c992f0fadc7faf20dd3e09388 (patch) | |
tree | 8cca705bc7007a2c3ebd457a3d605fb7392a9c5a /tests/samplebinding/simplefile_glue.cpp | |
parent | 95a97f17d87bcc20a3b4cfc6a5a98fbbc24fe432 (diff) |
fixed how the generator deals with code injection for classes and methods;
also fixed the tests type system accordingly
Diffstat (limited to 'tests/samplebinding/simplefile_glue.cpp')
-rw-r--r-- | tests/samplebinding/simplefile_glue.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/samplebinding/simplefile_glue.cpp b/tests/samplebinding/simplefile_glue.cpp index 0e32acde7..f427a51b3 100644 --- a/tests/samplebinding/simplefile_glue.cpp +++ b/tests/samplebinding/simplefile_glue.cpp @@ -1,8 +1,6 @@ -// native ending -if (!%CPPSELF.open()) { +if (!%CPPSELF.%FUNCTION_NAME()) { PyObject* error_msg = PyString_FromFormat( "Could not open file: \"%s\"", %CPPSELF->filename()); PyErr_SetObject(PyExc_IOError, error_msg); return 0; } - |