9 #ifndef TREELITE_C_API_COMMON_H_ 10 #define TREELITE_C_API_COMMON_H_ 13 #define TREELITE_EXTERN_C extern "C" 17 #define TREELITE_EXTERN_C 23 #if defined(_MSC_VER) || defined(_WIN32) 24 #define TREELITE_DLL TREELITE_EXTERN_C __declspec(dllexport) 26 #define TREELITE_DLL TREELITE_EXTERN_C 45 #endif // TREELITE_C_API_COMMON_H_ int TreeliteRegisterLogCallback(void(*callback)(const char *))
register callback function for LOG(INFO) messages – helpful messages that are not errors...
const char * TreeliteGetLastError(void)
display last error; can be called by multiple threads Note. Each thread will get the last error occur...