caniadd/src/error.c

13 lines
222 B
C
Raw Normal View History

2022-01-08 19:53:58 +01:00
#include "error.h"
static const char *error_string[] = {
FE_ERROR(GEN_STRING)
};
const char *error_to_string(enum error err)
{
if (err >= _ERR_COUNT)
return "ERR_UNKNOWN";
return error_string[err];
}