| 18 | class PyStreamContext { |
| 19 | public: |
| 20 | PyStreamContext(mx::StreamOrDevice s) : _inner(nullptr) { |
| 21 | if (std::holds_alternative<std::monostate>(s)) { |
| 22 | throw std::runtime_error( |
| 23 | "[StreamContext] Invalid argument, please specify a stream or device."); |
| 24 | } |
| 25 | _s = s; |
| 26 | } |
| 27 | |
| 28 | void enter() { |
| 29 | _inner = new mx::StreamContext(_s); |
nothing calls this directly
no outgoing calls
no test coverage detected