| 40 | |
| 41 | template <class T> |
| 42 | inline T* expect_non_null(T* x) |
| 43 | { |
| 44 | if (x == 0) |
| 45 | throw_error_already_set(); |
| 46 | return x; |
| 47 | } |
| 48 | |
| 49 | // Return source if it is an instance of pytype; throw an appropriate |
| 50 | // exception otherwise. |
no outgoing calls
no test coverage detected