Changeset 9b54dd8 in rtems-source-builder


Ignore:
Timestamp:
Oct 27, 2017, 6:22:12 AM (19 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
723b638
Parents:
5bd4aa6
git-author:
Chris Johns <chrisj@…> (10/27/17 06:22:12)
git-committer:
Chris Johns <chrisj@…> (10/27/17 06:26:26)
Message:

sb: Add a defined check.

Updates #3210.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/macros.py

    r5bd4aa6 r9b54dd8  
    448448                del self.macros[map][key]
    449449
     450    def defined(self, key, globals = True, maps = None):
     451        return self.get(key, globals, maps) is not None
     452
    450453    def expand(self, _str):
    451454        """Simple basic expander of config file macros."""
Note: See TracChangeset for help on using the changeset viewer.