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

Function GetWeakVariableName

lib/variables/variable.cpp:420–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420std::string GetWeakVariableName(std::weak_ptr<Variable> var_)
421{
422 auto var = var_.lock();
423 if (!var) {
424 return obs_module_text("AdvSceneSwitcher.variable.invalid");
425 }
426
427 return var->Name();
428}
429
430static bool variableWithNameExists(const std::string &name)
431{

Callers 12

SaveMethod · 0.85
SaveMethod · 0.85
SaveMethod · 0.85
GetShortDescMethod · 0.85
SaveMethod · 0.85
GetShortDescMethod · 0.85
ToStringMethod · 0.85
SaveMethod · 0.85
SaveMethod · 0.85
GetShortDescMethod · 0.85
SaveMethod · 0.85
varOrNumFunction · 0.85

Calls 2

obs_module_textFunction · 0.85
NameMethod · 0.45

Tested by

no test coverage detected