Treelite
|
C error handling. More...
#include <treelite/thread_local.h>
#include <treelite/c_api_error.h>
#include <treelite/version.h>
#include <string>
#include <sstream>
Go to the source code of this file.
Macros | |
#define | STR_IMPL_(x) #x |
#define | STR(x) STR_IMPL_(x) |
Functions | |
const char * | TreeliteGetLastError () |
display last error; can be called by multiple threads Note. Each thread will get the last error occured in its own context. More... | |
void | TreeliteAPISetLastError (const char *msg) |
Set the last error message needed by C API. More... | |
const char * | TreeliteQueryTreeliteVersion () |
Get the version string for the Treelite library. More... | |
Variables | |
const char * | TREELITE_VERSION |
void TreeliteAPISetLastError | ( | const char * | msg | ) |
Set the last error message needed by C API.
msg | The error message to set. |
Definition at line 32 of file c_api_error.cc.
const char* TreeliteGetLastError | ( | void | ) |
display last error; can be called by multiple threads Note. Each thread will get the last error occured in its own context.
Definition at line 28 of file c_api_error.cc.
const char* TreeliteQueryTreeliteVersion | ( | void | ) |
Get the version string for the Treelite library.
Definition at line 36 of file c_api_error.cc.
const char* TREELITE_VERSION |
Definition at line 44 of file c_api_error.cc.