mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 22:16:10 +03:00
32 lines
658 B
C
32 lines
658 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <setjmp.h>
|
|
|
|
typedef enum catala_fatal_error_code
|
|
{
|
|
catala_no_value_provided,
|
|
catala_conflict,
|
|
catala_crash,
|
|
catala_empty,
|
|
catala_assertion_failure,
|
|
} catala_fatal_error_code;
|
|
|
|
typedef struct catala_code_position
|
|
{
|
|
char *filename;
|
|
unsigned int start_line;
|
|
unsigned int start_column;
|
|
unsigned int end_line;
|
|
unsigned int end_column;
|
|
} catala_code_position;
|
|
|
|
typedef struct catala_fatal_error
|
|
{
|
|
catala_code_position position;
|
|
catala_fatal_error_code code;
|
|
} catala_fatal_error;
|
|
|
|
catala_fatal_error catala_fatal_error_raised;
|
|
|
|
jmp_buf catala_fatal_error_jump_buffer;
|