diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-05 18:23:13 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-05 18:33:49 +0100 |
commit | f52513b09580c1533e6c48a4162d3d5f61f3b081 (patch) | |
tree | 141d0974a777f4ec5b51daed9879a2cb0d781505 /libgamma_value_of_error.c | |
parent | Split source files, merge public header files, eliminite use gpp, rewrite makefile (diff) | |
download | libgamma-f52513b09580c1533e6c48a4162d3d5f61f3b081.tar.gz libgamma-f52513b09580c1533e6c48a4162d3d5f61f3b081.tar.bz2 libgamma-f52513b09580c1533e6c48a4162d3d5f61f3b081.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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) |