Changeset 48082fc in rtems-central


Ignore:
Timestamp:
May 11, 2020, 12:07:48 PM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
45ac44d
Parents:
05246b3
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/20 12:07:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/28/20 08:38:22)
Message:

content: Fix header guard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsqual/content.py

    r05246b3 r48082fc  
    519519    def header_guard(self, filename: str) -> Iterator[None]:
    520520        """ Opens a header guard context. """
    521         filename = os.path.basename(filename)
    522         guard = "_" + filename.replace(".", "_").upper()
     521        guard = "_" + filename.replace("/", "_").replace(".", "_").upper()
    523522        self.add([f"#ifndef {guard}", f"#define {guard}"])
    524523        yield
Note: See TracChangeset for help on using the changeset viewer.