1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* See LICENSE file for copyright and license details. */ #include "common.h" const char * libsyscalls_strerror(enum libsyscalls_error error) { #define X(ENUM, STR)\ case ENUM: return STR switch ((int)error) { LIBSYSCALLS_LIST_ERRORS(X, ;); default: return "Unrecognised error"; } #undef X }