35 lines
462 B
C
35 lines
462 B
C
// Kyler Olsen
|
|
// YREA SLS
|
|
// SLS Error Header
|
|
// October 2025
|
|
|
|
#ifndef SLS_ERROR_H
|
|
#define SLS_ERROR_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
FALSE,
|
|
TRUE,
|
|
} Boolean;
|
|
|
|
typedef struct {
|
|
const char *message;
|
|
int32_t code;
|
|
} SlsError;
|
|
|
|
typedef enum {
|
|
SLS_ERROR,
|
|
SLS_RESULT,
|
|
} SlsResultType;
|
|
|
|
typedef struct {
|
|
const char *filename;
|
|
size_t line;
|
|
size_t column;
|
|
size_t length;
|
|
size_t lines;
|
|
} FileInfo;
|
|
|
|
#endif // SLS_ERROR_H
|