Skip to content

Commit

Permalink
Add a header guard
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed May 24, 2024
1 parent 06e4917 commit 12214cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/podio_gen/cpp_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,11 @@ def _write_all_collections_header(self):
),
self._eval_template(
"AllCollections.h.jinja2",
{"includes": collection_files, "incfolder": self.incfolder},
{
"includes": collection_files,
"incfolder": self.incfolder,
"package_name": self.package_name,
},
),
)

Expand Down
5 changes: 5 additions & 0 deletions python/templates/AllCollections.h.jinja2
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// AUTOMATICALLY GENERATED FILE - DO NOT EDIT

#ifndef All{{ package_name }}Collections_H
#define All{{ package_name }}Collections_H

{% for name in includes %}
#include "{{ incfolder }}{{ name }}"
{% endfor %}

#endif // All{{ package_name }}Collections_H

0 comments on commit 12214cc

Please sign in to comment.