Sat, 02 Nov 2024 20:17:38 +0100
fix copy-pasted parameter name
src/cx/json.h | file | annotate | diff | comparison | revisions |
--- a/src/cx/json.h Sat Nov 02 19:37:59 2024 +0100 +++ b/src/cx/json.h Sat Nov 02 20:17:38 2024 +0100 @@ -182,12 +182,12 @@ __attribute__((__nonnull__)) int cxJsonFilln(CxJson *json, const char *buf, size_t len); -#define cxJsonFill(prop, str) _Generic((str), \ +#define cxJsonFill(json, str) _Generic((str), \ cxstring: cx_json_fill_cxstr, \ cxmutstr: cx_json_fill_mutstr, \ char*: cx_json_fill_str, \ const char*: cx_json_fill_str) \ - (prop, str) + (json, str) __attribute__((__nonnull__)) static inline int cx_json_fill_cxstr(