You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
455 B

#ifndef OS_ERROR_H
#define OS_ERROR_H
//--------------Includes-----------------
#include<ostypes.h>
//--------------Preprocessor Hacks-------
#define THROW_ERROR(ERROR_TYPE)\
osPrintError(__FILE__, __LINE__, ERROR_TYPE)
//--------------Funtions-----------------
uint8_t osExplainError(const char* ifile, const int iline, const osError_t ierror, char* message);
void osPrintError(const char* ifile, const int iline, const osError_t ierror);
#endif