| 18 | } // namespace |
| 19 | |
| 20 | auto main() -> int { |
| 21 | // get handle from C-API |
| 22 | HandlePtr const c_handle{PGM_create_handle()}; |
| 23 | std::cout << (c_handle ? "Handle created: C-API is available.\n" : "No handle could be created.\n"); |
| 24 | // get handle from C++ API |
| 25 | power_grid_model_cpp::Handle const cpp_handle{}; |
| 26 | std::cout << (cpp_handle.get() ? "Handle created: C++ API is available.\n" : "No handle could be created.\n"); |
| 27 | int return_code = (c_handle != nullptr) && (cpp_handle.get() != nullptr) ? 0 : 1; |
| 28 | return return_code; |
| 29 | } |
nothing calls this directly
no test coverage detected