7 #ifndef TREELITE_C_API_ERROR_H_ 8 #define TREELITE_C_API_ERROR_H_ 14 #define API_BEGIN() try { 18 } catch(std::exception &_except_) { \ 19 return TreeliteAPIHandleException(_except_); \ 27 #define API_END_HANDLE_ERROR(Finalize) \ 28 } catch(std::exception &_except_) { \ 30 return TreeliteAPIHandleException(_except_); \ 48 #endif // TREELITE_C_API_ERROR_H_ int TreeliteAPIHandleException(const std::exception &e)
handle exception thrown out
void TreeliteAPISetLastError(const char *msg)
Set the last error message needed by C API.
C API of Treelite, used for interfacing with other languages This header is used by both the runtime ...