From 57b9085772363826e96afa22b7474e76fa8027cc Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Wed, 20 Jan 2016 18:09:49 +0100 Subject: [PATCH] Replace hyphens by underscores --- python/dune/perftool/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dune/perftool/file.py b/python/dune/perftool/file.py index b031959a..ab675570 100644 --- a/python/dune/perftool/file.py +++ b/python/dune/perftool/file.py @@ -23,7 +23,7 @@ def generate_file(filename, tag, content, headerguard=True): with open(filename, 'w') as f: # Add a double inclusion protection header if headerguard: - macro = filename.upper().replace("/", "_").replace(".", "_") + macro = filename.upper().replace("/", "_").replace(".", "_").replace("-", "_") f.write("#ifndef {0}\n#define {0}\n\n".format(macro)) # Add the includes from the cache -- GitLab