| 2064 | } |
| 2065 | |
| 2066 | inline void grid(bool flag) |
| 2067 | { |
| 2068 | detail::_interpreter::get(); |
| 2069 | |
| 2070 | PyObject* pyflag = flag ? Py_True : Py_False; |
| 2071 | Py_INCREF(pyflag); |
| 2072 | |
| 2073 | PyObject* args = PyTuple_New(1); |
| 2074 | PyTuple_SetItem(args, 0, pyflag); |
| 2075 | |
| 2076 | PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_grid, args); |
| 2077 | if(!res) throw std::runtime_error("Call to grid() failed."); |
| 2078 | |
| 2079 | Py_DECREF(args); |
| 2080 | Py_DECREF(res); |
| 2081 | } |
| 2082 | |
| 2083 | inline void show(const bool block = true) |
| 2084 | { |
nothing calls this directly
no outgoing calls
no test coverage detected