mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-30 05:06:14 -05:00
Add advss namespace
Fixes name conflict with "Duration" class and typedef of the same name on MacOS
This commit is contained in:
@@ -13,6 +13,8 @@ const char *obs_module_text(const char *text)
|
||||
typedef exprtk::expression<double> expression_t;
|
||||
typedef exprtk::parser<double> parser_t;
|
||||
|
||||
namespace advss {
|
||||
|
||||
std::variant<double, std::string> EvalMathExpression(const std::string &expr)
|
||||
{
|
||||
expression_t expression;
|
||||
@@ -41,3 +43,5 @@ std::optional<double> GetDouble(const std::string &str)
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
} // namespace advss
|
||||
|
||||
Reference in New Issue
Block a user