| 55 | |
| 56 | template <typename T> |
| 57 | inline bool setOptional(OSVR_ChannelCount input, T ptr, |
| 58 | boost::optional<OSVR_ChannelCount> &dest) { |
| 59 | if (0 == input || nullptr == ptr) { |
| 60 | dest.reset(); |
| 61 | return false; |
| 62 | } |
| 63 | dest = input; |
| 64 | return true; |
| 65 | } |
| 66 | |
| 67 | void OSVR_DeviceInitObject::setAnalogs( |
| 68 | OSVR_ChannelCount num, osvr::connection::AnalogServerInterface **iface) { |
no test coverage detected