Skip to content
Snippets Groups Projects
Commit 57b90857 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Replace hyphens by underscores

parent e0df0dbe
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ def generate_file(filename, tag, content, headerguard=True): ...@@ -23,7 +23,7 @@ def generate_file(filename, tag, content, headerguard=True):
with open(filename, 'w') as f: with open(filename, 'w') as f:
# Add a double inclusion protection header # Add a double inclusion protection header
if headerguard: if headerguard:
macro = filename.upper().replace("/", "_").replace(".", "_") macro = filename.upper().replace("/", "_").replace(".", "_").replace("-", "_")
f.write("#ifndef {0}\n#define {0}\n\n".format(macro)) f.write("#ifndef {0}\n#define {0}\n\n".format(macro))
# Add the includes from the cache # Add the includes from the cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment