format: Protect the special session_configuration_vars.h and its use of CONFIG_VARIABLE
This commit is contained in:
parent
853204e455
commit
81ca475b10
@ -44,6 +44,7 @@ public:
|
||||
|
||||
/* define accessor methods */
|
||||
|
||||
/* clang-format off */
|
||||
#undef CONFIG_VARIABLE
|
||||
#undef CONFIG_VARIABLE_SPECIAL
|
||||
#define CONFIG_VARIABLE(Type,var,name,value) \
|
||||
@ -55,11 +56,13 @@ public:
|
||||
#include "ardour/session_configuration_vars.h"
|
||||
#undef CONFIG_VARIABLE
|
||||
#undef CONFIG_VARIABLE_SPECIAL
|
||||
/* clang-format on */
|
||||
|
||||
private:
|
||||
|
||||
/* declare variables */
|
||||
|
||||
/* clang-format off */
|
||||
#undef CONFIG_VARIABLE
|
||||
#undef CONFIG_VARIABLE_SPECIAL
|
||||
#define CONFIG_VARIABLE(Type,var,name,value) PBD::ConfigVariable<Type> var;
|
||||
@ -67,6 +70,7 @@ public:
|
||||
#include "ardour/session_configuration_vars.h"
|
||||
#undef CONFIG_VARIABLE
|
||||
#undef CONFIG_VARIABLE_SPECIAL
|
||||
/* clang-format on */
|
||||
|
||||
int foo;
|
||||
|
||||
|
@ -41,6 +41,8 @@
|
||||
using namespace ARDOUR;
|
||||
using namespace PBD;
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
SessionConfiguration::SessionConfiguration ()
|
||||
:
|
||||
/* construct variables */
|
||||
@ -151,6 +153,7 @@ SessionConfiguration::map_parameters (boost::function<void (std::string)>& funct
|
||||
#undef CONFIG_VARIABLE_SPECIAL
|
||||
}
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
bool
|
||||
SessionConfiguration::load_state ()
|
||||
|
Loading…
Reference in New Issue
Block a user