Add errors
and prepare for file menu more and fix that you can't go left right when going up down
This commit is contained in:
15
source/err.h
Normal file
15
source/err.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include <utils/types.h>
|
||||
|
||||
typedef struct {
|
||||
u16 err;
|
||||
u16 loc;
|
||||
char* file;
|
||||
} ErrCode_t;
|
||||
|
||||
enum {
|
||||
TE_ERR_UNIMPLEMENTED = 21,
|
||||
};
|
||||
|
||||
#define newErrCode(err) (ErrCode_t) {err, __LINE__, __FILE__}
|
||||
void DrawError(ErrCode_t err);
|
||||
Reference in New Issue
Block a user