| 2119 | } |
| 2120 | |
| 2121 | inline void xkcd() { |
| 2122 | detail::_interpreter::get(); |
| 2123 | |
| 2124 | PyObject* res; |
| 2125 | PyObject *kwargs = PyDict_New(); |
| 2126 | |
| 2127 | res = PyObject_Call(detail::_interpreter::get().s_python_function_xkcd, |
| 2128 | detail::_interpreter::get().s_python_empty_tuple, kwargs); |
| 2129 | |
| 2130 | Py_DECREF(kwargs); |
| 2131 | |
| 2132 | if (!res) |
| 2133 | throw std::runtime_error("Call to show() failed."); |
| 2134 | |
| 2135 | Py_DECREF(res); |
| 2136 | } |
| 2137 | |
| 2138 | inline void draw() |
| 2139 | { |
nothing calls this directly
no outgoing calls
no test coverage detected