summaryrefslogtreecommitdiffstats
path: root/control/templates/defs.mako
diff options
context:
space:
mode:
Diffstat (limited to 'control/templates/defs.mako')
-rw-r--r--control/templates/defs.mako5
1 files changed, 5 insertions, 0 deletions
diff --git a/control/templates/defs.mako b/control/templates/defs.mako
index 2fd3856..bcc0c5b 100644
--- a/control/templates/defs.mako
+++ b/control/templates/defs.mako
@@ -65,6 +65,8 @@ TimerConf{
std::vector<Signal>{
%for s in event['signals']:
Signal{
+ %if ('match' in s) and \
+ (s['match'] is not None):
match::${s['match']}(
%for i, mp in enumerate(s['mparams']):
%if (i+1) != len(s['mparams']):
@@ -74,6 +76,9 @@ std::vector<Signal>{
%endif
%endfor
),
+ %else:
+ "",
+ %endif
make_handler(\
${indent(genHandler(sig=s), 3)}\
)
OpenPOWER on IntegriCloud