Define helper functions only if needed
commit615c5cf0a6ba64af1e66e39722bc01334d484dcc
authorPhilipp Stephani <phst@google.com>
Wed, 20 Dec 2017 17:36:35 +0000 (20 18:36 +0100)
committerPhilipp Stephani <phst@google.com>
Wed, 20 Dec 2017 17:36:35 +0000 (20 18:36 +0100)
tree278a627de99bfb71df533481e594725a94836b08
parent4bb8e2879d31aa0e7ead0b384959c85b4ccc7c0c
Define helper functions only if needed

* src/json.c (JSON_HAS_ERROR_CODE): New define.
(json_parse_error): Use it.
(json_has_prefix, json_has_suffix): Define only if needed.
src/json.c