Add advss namespace

Fixes name conflict with "Duration" class and typedef of the same name
on MacOS
This commit is contained in:
WarmUpTill
2023-04-12 16:16:03 +02:00
committed by WarmUpTill
parent b7479e8342
commit 2c5caabab0
266 changed files with 1142 additions and 92 deletions

View File

@@ -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