mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[build/simulator] NDEBUG flag in release mode
This way, asserts are not performed on simulator platforms
This commit is contained in:
committed by
EmilieNumworks
parent
4a9bfca1f6
commit
2ed354710f
@@ -14,7 +14,7 @@ namespace Solver {
|
||||
void addEquationWithText(EquationStore * equationStore, const char * text, Context * context) {
|
||||
Ion::Storage::Record::ErrorStatus err = equationStore->addEmptyModel();
|
||||
quiz_assert_print_if_failure(err == Ion::Storage::Record::ErrorStatus::None, text);
|
||||
(void) err; // Silence warning in DEBUG=0
|
||||
(void) err; // Silence warning in release mode
|
||||
Ion::Storage::Record record = equationStore->recordAtIndex(equationStore->numberOfModels()-1);
|
||||
Shared::ExpiringPointer<Equation> model = equationStore->modelForRecord(record);
|
||||
model->setContent(text, context);
|
||||
|
||||
Reference in New Issue
Block a user