| 2150 | |
| 2151 | template<typename Numeric> |
| 2152 | inline void pause(Numeric interval) |
| 2153 | { |
| 2154 | detail::_interpreter::get(); |
| 2155 | |
| 2156 | PyObject* args = PyTuple_New(1); |
| 2157 | PyTuple_SetItem(args, 0, PyFloat_FromDouble(interval)); |
| 2158 | |
| 2159 | PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_pause, args); |
| 2160 | if(!res) throw std::runtime_error("Call to pause() failed."); |
| 2161 | |
| 2162 | Py_DECREF(args); |
| 2163 | Py_DECREF(res); |
| 2164 | } |
| 2165 | |
| 2166 | inline void save(const std::string& filename) |
| 2167 | { |
nothing calls this directly
no outgoing calls
no test coverage detected