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

Function compareSourceSize

plugins/base/macro-condition-source.cpp:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49};
50
51static bool compareSourceSize(MacroConditionSource::SizeComparision method,
52 int sourceValue, int compareValue)
53{
54 switch (method) {
55 case MacroConditionSource::SizeComparision::LESS:
56 return sourceValue < compareValue;
57 case MacroConditionSource::SizeComparision::EQUAL:
58 return sourceValue == compareValue;
59 case MacroConditionSource::SizeComparision::MORE:
60 return sourceValue > compareValue;
61 default:
62 break;
63 }
64 return false;
65}
66
67bool MacroConditionSource::CheckCondition()
68{

Callers 1

CheckConditionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected