summaryrefslogtreecommitdiffstats
path: root/src/templates/conditional.mako.cpp
blob: 229b3d673cda678b98889ab2c2cedbef011328e3 (plain)
1
2
3
4
5
6
7
8
9
10
% if c.defer:
std::make_unique<DeferrableCallback<ConfigPropertyCallbacks, SDEventTimer>>(
${indent(1)}ConfigPropertyCallbackGroups::get()[${c.graph}],
${indent(1)}*ConfigConditions::get()[${c.condition}],
${indent(1)}${c.defer})\
% else:
std::make_unique<ConditionalCallback<ConfigPropertyCallbacks>>(
${indent(1)}ConfigPropertyCallbackGroups::get()[${c.graph}],
${indent(1)}*ConfigConditions::get()[${c.condition}])\
% endif\
OpenPOWER on IntegriCloud