From 0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 12 Jul 2017 22:18:01 +0100 Subject: Add inline options class for testing inline macros --- icetray/unittests/testOptions.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/icetray/unittests/testOptions.cpp b/icetray/unittests/testOptions.cpp index b0bfdee..a205755 100644 --- a/icetray/unittests/testOptions.cpp +++ b/icetray/unittests/testOptions.cpp @@ -12,3 +12,17 @@ ICETRAY_OPTIONS(TestOptions, FACTORY(TestOptions, IceTray::OptionsFactory); +class TestOptionsInline : public IceTray::Options { + public: + TestOptionsInline() : IceTray::Options("Test options inline") + { + } + + ICETRAY_OPTIONS_INLINE( + ("testIntInline", boost::program_options::value(&testInt), "testInt") + ); + + int testInt; +}; +FACTORY(TestOptionsInline, IceTray::OptionsFactory); + -- cgit v1.2.3