![]() |
LlamaLib
v2.0.2
Cross-platform library for local LLMs
|
Error state registry for managing shared error state. More...
#include <error_handling.h>
Static Public Member Functions | |
| static void | inject_error_state (ErrorState *state) |
| Inject a custom error state instance. | |
| static ErrorState & | get_error_state () |
| Get the error state instance. | |
Error state registry for managing shared error state.
Definition at line 28 of file error_handling.h.
|
inlinestatic |
Get the error state instance.
Definition at line 41 of file error_handling.h.
|
inlinestatic |
Inject a custom error state instance.
| state | Custom error state instance to use |
Allows error state injection when using different dynamic libraries
Definition at line 34 of file error_handling.h.