Skip to content

Commit

Permalink
Add PROCESS_SWITCH_FULL
Browse files Browse the repository at this point in the history
- generalisation of PROCESS_SWITCH for templated methods
  • Loading branch information
qgp authored and ktf committed Nov 20, 2023
1 parent 87ed07a commit b1f612c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Framework/Core/include/Framework/Configurable.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ struct ProcessConfigurable : Configurable<bool, ConfigParamKind::kProcessFlag> {

#define PROCESS_SWITCH(_Class_, _Name_, _Help_, _Default_) \
decltype(ProcessConfigurable{&_Class_ ::_Name_, #_Name_, _Default_, _Help_}) do##_Name_ = ProcessConfigurable{&_Class_ ::_Name_, #_Name_, _Default_, _Help_};
#define PROCESS_SWITCH_FULL(_Class_, _Method_, _Name_, _Help_, _Default_) \
decltype(ProcessConfigurable{&_Class_ ::_Method_, #_Name_, _Default_, _Help_}) do##_Name_ = ProcessConfigurable{&_Class_ ::_Method_, #_Name_, _Default_, _Help_};

template <typename T, ConfigParamKind K, typename IP>
std::ostream& operator<<(std::ostream& os, Configurable<T, K, IP> const& c)
Expand Down

0 comments on commit b1f612c

Please sign in to comment.