Commit 5efa9ff3 authored by Beniamino Galvani's avatar Beniamino Galvani

shared: add nm_auto_decref_json

parent 1423ad24
......@@ -41,6 +41,9 @@
n = json_object_iter_next(object, json_object_key_to_iter(key)))
#endif
NM_AUTO_DEFINE_FCN0 (json_t *, _nm_auto_decref_json, json_decref)
#define nm_auto_decref_json nm_auto(_nm_auto_decref_json)
#endif /* WITH_JANSON */
#endif /* __NM_JANSSON_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment