Fixed guard name when generating a header.
This commit is contained in:
parent
3c7770a2a4
commit
34730454ae
@ -77,7 +77,7 @@ def create_header() -> None:
|
|||||||
|
|
||||||
_logger.info('Generating header at %s.', str(_header_path))
|
_logger.info('Generating header at %s.', str(_header_path))
|
||||||
|
|
||||||
guard = '_'.join(_header_path.with_suffix('').parts[1:]).upper()
|
guard = '_'.join((*_header_path.parts[1:], 'INCLUDED')).upper().replace('.', '_')
|
||||||
generate_file(_HEADER_TEMPLATE_NAME, _header_path, {
|
generate_file(_HEADER_TEMPLATE_NAME, _header_path, {
|
||||||
'guard': guard,
|
'guard': guard,
|
||||||
'namespace': _namespace
|
'namespace': _namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user