33 lines
447 B
C
33 lines
447 B
C
// Kyler Olsen
|
|
// YREA SLS
|
|
// SLS Error Header
|
|
// October 2025
|
|
|
|
#ifndef SLS_ERROR_H
|
|
#define SLS_ERROR_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#include "./string.h"
|
|
|
|
typedef struct {
|
|
SlsStr message;
|
|
int32_t code;
|
|
} SlsError;
|
|
|
|
typedef enum {
|
|
SLS_ERROR,
|
|
SLS_RESULT,
|
|
} SlsResultType;
|
|
|
|
typedef struct {
|
|
SlsStr filename;
|
|
size_t line;
|
|
size_t column;
|
|
size_t length;
|
|
size_t lines;
|
|
} FileInfo;
|
|
|
|
#endif // SLS_ERROR_H
|