diff options
| author | David Shah <davey1576@gmail.com> | 2018-07-04 12:15:23 +0200 | 
|---|---|---|
| committer | David Shah <davey1576@gmail.com> | 2018-07-04 12:15:23 +0200 | 
| commit | e0a851976f7bc51702bc6ba667f36749cd554ebb (patch) | |
| tree | 7ad0979da5cf954ccef6a21884d23fd55c3d7299 /common/design_utils.cc | |
| parent | b96727549ccd319f61d33982f678075880fad166 (diff) | |
| download | nextpnr-e0a851976f7bc51702bc6ba667f36749cd554ebb.tar.gz nextpnr-e0a851976f7bc51702bc6ba667f36749cd554ebb.tar.bz2 nextpnr-e0a851976f7bc51702bc6ba667f36749cd554ebb.zip | |
refactor: Replace assert with NPNR_ASSERT
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/design_utils.cc')
| -rw-r--r-- | common/design_utils.cc | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/design_utils.cc b/common/design_utils.cc index 58257bb7..6876babe 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -28,7 +28,7 @@ void replace_port(CellInfo *old_cell, IdString old_name, CellInfo *rep_cell, IdS  {      PortInfo &old = old_cell->ports.at(old_name);      PortInfo &rep = rep_cell->ports.at(rep_name); -    assert(old.type == rep.type); +    NPNR_ASSERT(old.type == rep.type);      rep.net = old.net;      old.net = nullptr; @@ -47,7 +47,7 @@ void replace_port(CellInfo *old_cell, IdString old_name, CellInfo *rep_cell, IdS              }          }      } else { -        assert(false); +        NPNR_ASSERT(false);      }  } | 
