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