diff options
Diffstat (limited to 'libgamma_value_of_error.c')
-rw-r--r-- | libgamma_value_of_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgamma_value_of_error.c b/libgamma_value_of_error.c index 6d2f878..41ca40f 100644 --- a/libgamma_value_of_error.c +++ b/libgamma_value_of_error.c @@ -6,7 +6,7 @@ * Get the value of a `libgamma` error definition refered to by name * * @param name The name of the definition associated with the error code - * @return The error code, zero if the name does is `NULL` + * @return The error code, zero if the name is `NULL` * or does not refer to a `libgamma` error */ int @@ -14,7 +14,7 @@ libgamma_value_of_error(const char *name) { if (!name) return 0; -#define X(NAME, DESC)\ +#define X(NAME, ...)\ if (!strcmp(name, #NAME))\ return NAME; LIST_ERRORS(X) |