diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-10-23 14:58:40 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-10-23 14:58:40 -0300 |
commit | 1cd1d0c57ea6b608063fc91f1e3d7e9731324ace (patch) | |
tree | 1a7ff930b89b397fac8296f9070733bb0a38bc24 /tests/samplebinding/simplefile_glue.cpp | |
parent | d43b3d4c08ed35eaf5c4a32043c83382bd00fbd0 (diff) |
renamed template variable %SELF to %PYSELF and %CPPOBJ to %CPPSELF
to improve code readability; also fixed usage of template variables
on type system for the test bindings
Diffstat (limited to 'tests/samplebinding/simplefile_glue.cpp')
-rw-r--r-- | tests/samplebinding/simplefile_glue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/samplebinding/simplefile_glue.cpp b/tests/samplebinding/simplefile_glue.cpp index b055ce267..0e32acde7 100644 --- a/tests/samplebinding/simplefile_glue.cpp +++ b/tests/samplebinding/simplefile_glue.cpp @@ -1,7 +1,7 @@ // native ending -if (%0 == Py_False) { +if (!%CPPSELF.open()) { PyObject* error_msg = PyString_FromFormat( - "Could not open file: \"%s\"", %CPPOBJ->filename()); + "Could not open file: \"%s\"", %CPPSELF->filename()); PyErr_SetObject(PyExc_IOError, error_msg); return 0; } |