mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
format: Protect the special session_configuration_vars.h and its use of CONFIG_VARIABLE
This commit is contained in:
parent
853204e455
commit
81ca475b10
2 changed files with 7 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ public:
|
||||||
|
|
||||||
/* define accessor methods */
|
/* define accessor methods */
|
||||||
|
|
||||||
|
/* clang-format off */
|
||||||
#undef CONFIG_VARIABLE
|
#undef CONFIG_VARIABLE
|
||||||
#undef CONFIG_VARIABLE_SPECIAL
|
#undef CONFIG_VARIABLE_SPECIAL
|
||||||
#define CONFIG_VARIABLE(Type,var,name,value) \
|
#define CONFIG_VARIABLE(Type,var,name,value) \
|
||||||
|
|
@ -55,11 +56,13 @@ public:
|
||||||
#include "ardour/session_configuration_vars.h"
|
#include "ardour/session_configuration_vars.h"
|
||||||
#undef CONFIG_VARIABLE
|
#undef CONFIG_VARIABLE
|
||||||
#undef CONFIG_VARIABLE_SPECIAL
|
#undef CONFIG_VARIABLE_SPECIAL
|
||||||
|
/* clang-format on */
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/* declare variables */
|
/* declare variables */
|
||||||
|
|
||||||
|
/* clang-format off */
|
||||||
#undef CONFIG_VARIABLE
|
#undef CONFIG_VARIABLE
|
||||||
#undef CONFIG_VARIABLE_SPECIAL
|
#undef CONFIG_VARIABLE_SPECIAL
|
||||||
#define CONFIG_VARIABLE(Type,var,name,value) PBD::ConfigVariable<Type> var;
|
#define CONFIG_VARIABLE(Type,var,name,value) PBD::ConfigVariable<Type> var;
|
||||||
|
|
@ -67,6 +70,7 @@ public:
|
||||||
#include "ardour/session_configuration_vars.h"
|
#include "ardour/session_configuration_vars.h"
|
||||||
#undef CONFIG_VARIABLE
|
#undef CONFIG_VARIABLE
|
||||||
#undef CONFIG_VARIABLE_SPECIAL
|
#undef CONFIG_VARIABLE_SPECIAL
|
||||||
|
/* clang-format on */
|
||||||
|
|
||||||
int foo;
|
int foo;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@
|
||||||
using namespace ARDOUR;
|
using namespace ARDOUR;
|
||||||
using namespace PBD;
|
using namespace PBD;
|
||||||
|
|
||||||
|
/* clang-format off */
|
||||||
|
|
||||||
SessionConfiguration::SessionConfiguration ()
|
SessionConfiguration::SessionConfiguration ()
|
||||||
:
|
:
|
||||||
/* construct variables */
|
/* construct variables */
|
||||||
|
|
@ -151,6 +153,7 @@ SessionConfiguration::map_parameters (boost::function<void (std::string)>& funct
|
||||||
#undef CONFIG_VARIABLE_SPECIAL
|
#undef CONFIG_VARIABLE_SPECIAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* clang-format on */
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SessionConfiguration::load_state ()
|
SessionConfiguration::load_state ()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue