| 33 | extern "C" { |
| 34 | |
| 35 | error_t driver_construct(Driver* driver) { |
| 36 | driver->internal = new(std::nothrow) DriverInternal; |
| 37 | if (driver->internal == nullptr) { |
| 38 | return ERROR_OUT_OF_MEMORY; |
| 39 | } |
| 40 | return ERROR_NONE; |
| 41 | } |
| 42 | |
| 43 | error_t driver_destruct(Driver* driver) { |
| 44 | auto* internal = driver->internal; |
no outgoing calls
no test coverage detected