Skip to content

Commit

Permalink
Fix preprocessor directives
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 8, 2023
1 parent 53a48f7 commit 878c470
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/templates/MutableObject.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ include }}
{% endfor %}

#ifdef PODIO_JSON_OUTPUT && !defined(__CLING__)
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
#include "nlohmann/json.hpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion python/templates/MutableObject.h.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <ostream>
#include <cstddef>

#ifdef PODIO_JSON_OUTPUT
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
#include "nlohmann/json_fwd.hpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion python/templates/Object.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ include }}
{% endfor %}

#ifdef PODIO_JSON_OUTPUT && !defined(__CLING__)
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
#include "nlohmann/json.hpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion python/templates/Object.h.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <ostream>
#include <cstddef>

#ifdef PODIO_JSON_OUTPUT && !defined(__CLING__)
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
#include "nlohmann/json_fwd.hpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion python/templates/macros/declarations.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
{%- endmacro %}

{% macro json_output(type, prefix='') %}
#ifdef PODIO_JSON_OUTPUT && !defined(__CLING__)
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
void to_json(nlohmann::json& j, const {{ prefix }}{{ type }}& value);
#endif
{% endmacro %}
2 changes: 1 addition & 1 deletion python/templates/macros/implementations.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ std::ostream& operator<<(std::ostream& o, const {{ type }}& value) {
{%- endmacro %}

{% macro json_output(class, members, single_relations, multi_relations, vector_members, get_syntax, prefix='') %}
#ifdef PODIO_JSON_OUTPUT
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
void to_json(nlohmann::json& j, const {{ prefix }}{{ class.bare_type }}& value) {
j = nlohmann::json{
{% set comma = joiner(",") %}
Expand Down

0 comments on commit 878c470

Please sign in to comment.