Skip to content

Commit

Permalink
Move testing behind another compiler flag for now, makes my developme…
Browse files Browse the repository at this point in the history
…nt a little smoother
  • Loading branch information
TheROPFather committed Aug 29, 2023
1 parent 5b6fb82 commit d753ee4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Etterna/MinaCalc/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,10 +1063,9 @@ PHPCPP_EXPORT void*
get_module()
{

bool stable = true;

if (stable)
{
#ifndef PHPCALC_TESTING

static Php::Extension myExtension(
"stable_calc", std::to_string(GetCalcVersion()).c_str());
myExtension.add<webcalc>("stableWebCalc",
Expand All @@ -1076,9 +1075,8 @@ get_module()
Php::ByVal("d", Php::Type::Numeric) });
myExtension.add<calculator_version>("stableCalcVersion");
return myExtension;
}
else
{
#else

static Php::Extension myExtension(
"testing_calc", std::to_string(GetCalcVersion()).c_str());
myExtension.add<webcalc>("testingWebCalc",
Expand All @@ -1088,7 +1086,7 @@ get_module()
Php::ByVal("d", Php::Type::Numeric) });
myExtension.add<calculator_version>("testingCalcVersion");
return myExtension;
}
#endif
}
}
#endif

0 comments on commit d753ee4

Please sign in to comment.