Go to the source code of this file.
◆ ERR
| #define ERR |
( |
| ctx, |
|
|
| err, |
|
|
| msg ) |
Value:
srn_error_t * srn_errors_make(const srn_context_t *ctx, srn_error_tag_t tag, const char *msg)
Definition at line 74 of file errors.h.
◆ ERROR_HEADER
◆ srn_error_t
| typedef struct srn_error_t srn_error_t |
◆ srn_error_tag_t
◆ srn_error_tag_t
| Enumerator |
|---|
| ABSURD | |
| SEQ_LIMIT_REACHED | |
| INDEX_OUT_OF_BOUND | |
| CORRUPTED_SEQ | When the memory layout of a seq is incorrect.
|
| FAILED_TO_ADD_MODULE | Failed to add a module to the jit engine.
|
| EMPTY_NAMESPACE_NAME | |
| EMPTY_SYMBOL_NAME | |
| STRING_LENGTH_LIMIT_EXCEEDED | |
Definition at line 44 of file errors.h.
44 {
@ CORRUPTED_SEQ
When the memory layout of a seq is incorrect.
@ STRING_LENGTH_LIMIT_EXCEEDED
@ FAILED_TO_ADD_MODULE
Failed to add a module to the jit engine.
◆ srn_errors_make()
Definition at line 28 of file errors.c.
28 {
32 err->
msg = (
char *)msg;
33 return err;
34}
#define PANIC_IF_NULL(ptr)