MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / varOrNum

Function varOrNum

plugins/base/utils/source-interaction-step.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace advss {
13
14static QString varOrNum(const NumberVariable<int> &v)
15{
16 if (!v.IsFixedType()) {
17 return QString::fromStdString(
18 GetWeakVariableName(v.GetVariable()));
19 }
20 return QString::number(v.GetFixedValue());
21}
22
23bool SourceInteractionStep::Save(obs_data_t *obj) const
24{

Callers 1

ToStringMethod · 0.85

Calls 4

GetWeakVariableNameFunction · 0.85
IsFixedTypeMethod · 0.80
GetVariableMethod · 0.80
GetFixedValueMethod · 0.80

Tested by

no test coverage detected