File: simplefile_glue.cpp

package info (click to toggle)
shiboken 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,012 kB
  • sloc: cpp: 50,315; python: 5,747; xml: 2,268; makefile: 137; ansic: 132
file content (6 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
if (!%CPPSELF.%FUNCTION_NAME()) {
    PyObject* error_msg = PyBytes_FromFormat(
            "Could not open file: \"%s\"", %CPPSELF->filename());
    PyErr_SetObject(PyExc_IOError, error_msg);
    return 0;
}