[refactor] Reduce code duplication in c_api.cpp (#3539)
* Refactor c_api.cpp with template code * Further cleanup * Fix whitespace for linter
Showing
Please register or sign in to comment
* Refactor c_api.cpp with template code * Further cleanup * Fix whitespace for linter