mirror of
https://github.com/nlohmann/json.git
synced 2026-10-01 06:25:17 +00:00
A header that builds on json.hpp (such as the planned json_view.hpp) must not inline json.hpp: its single-header version would contain a second copy of the library, and that copy would change with every library change. The optional config key "external" lists include paths that are kept as #include directives. Only the first directive per path is kept; repeated ones are commented out, as the tool already does for inlined headers. config_json_view.json uses it for json_view.hpp; the existing configs do not set it, and json.hpp and json_fwd.hpp regenerate byte-identically. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
635 B
635 B
The following changes have been made to the code with respect to https://github.com/edlund/amalgamate/commit/c91f07eea1133aa184f652b8f1398eaf03586208:
- Resolved inspection results from PyCharm:
- replaced tabs with spaces
- added encoding annotation
- reindented file to remove trailing whitespaces
- unused import
sys - membership check
- made function from
_is_within - removed unused variable
actual_path
- Added the optional config key
external: include paths listed there are kept as#includedirectives instead of being inlined (the first directive per path; the repeated ones are commented out).