summaryrefslogtreecommitdiffstats
path: root/rtemsqual/interface.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-12 19:14:18 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:38:22 +0200
commit6ebb359569bda7aada6dfa0c8f7abc0dca3ebacb (patch)
tree0ed7c575f699a51bb31d3631035daec2169286da /rtemsqual/interface.py
parentcontent: Add CInclude (diff)
downloadrtems-central-6ebb359569bda7aada6dfa0c8f7abc0dca3ebacb.tar.bz2
interface: Skip default definition only if null
Diffstat (limited to 'rtemsqual/interface.py')
-rw-r--r--rtemsqual/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemsqual/interface.py b/rtemsqual/interface.py
index 31feda59..d5089299 100644
--- a/rtemsqual/interface.py
+++ b/rtemsqual/interface.py
@@ -135,7 +135,7 @@ def _add_definition(node: "Node", item: Item, prefix: str,
content.append(get_lines(node, item,
variant["definition"]))
ifelse = "#elif "
- if default:
+ if default is not None:
content.append("#else")
with node.mapper.prefix(os.path.join(prefix, "default")):
with content.indent():