do while trick on debug

This commit is contained in:
Paul Fd 2020-03-15 10:43:42 +01:00
parent b4ddd2aabe
commit 61314db79d
2 changed files with 3 additions and 4 deletions

View file

@ -223,11 +223,10 @@ void CurveSet::addCurveFromHeader(absl::Span<const Opcode> members)
Curve::Interpolator itp = Curve::Interpolator::Linear;
if (const Opcode* opc = findOpcode(hash("curve_index"))) {
if (auto opt = readOpcode<int>(opc->value, {0, 255})) {
if (auto opt = readOpcode<int>(opc->value, {0, 255}))
curveIndex = *opt;
} else {
else
DBG("Invalid value for curve index: " << opc->value);
}
}
#if 0 // potential sfizz extension

View file

@ -45,7 +45,7 @@
ASSERTFALSE
// Debug message
#define DBG(ostream) std::cerr << ostream << '\n'
#define DBG(ostream) do { std::cerr << ostream << '\n'; } while (0)
#else // NDEBUG