ZE-Standard-Libraries/error/error.h

23 lines
388 B
C
Raw Normal View History

#ifndef ERROR_H
#define ERROR_H
2018-08-03 10:32:20 +00:00
#include "../type/type.h"
#include "../list/list_expand.h"
2018-08-02 12:59:06 +00:00
Log logfile;
2018-02-18 11:22:12 +00:00
List *error_list = NULL;
2018-08-02 12:59:06 +00:00
List *notice_list = NULL;
2018-02-18 11:22:12 +00:00
int if_error = 0;
2018-08-02 12:59:06 +00:00
int initErrorSystem(void);
int setLogDirectory(const char *path);
int closeLogDirectory(void);
2018-08-03 10:32:20 +00:00
int loadFromFile(FILE *fp,char* number);
2018-08-02 12:59:06 +00:00
2018-08-03 10:32:20 +00:00
int saveError(Error *p_error);
int saveNotice(Notice *p_notice);
2018-08-02 12:59:06 +00:00
2018-08-03 10:32:20 +00:00
#endif