aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r--common/nextpnr.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc
index 1ca3766a..40eb2536 100644
--- a/common/nextpnr.cc
+++ b/common/nextpnr.cc
@@ -21,6 +21,12 @@
NEXTPNR_NAMESPACE_BEGIN
+assertion_failure::assertion_failure(std::string msg, std::string expr_str, std::string filename, int line)
+ : runtime_error("Assertion failure: " + msg + " (" + filename + ":" + std::to_string(line) + ")"), msg(msg),
+ expr_str(expr_str), filename(filename), line(line)
+{
+}
+
std::unordered_set<BaseCtx *> IdString::global_ctx;
void IdString::set(const BaseCtx *ctx, const std::string &s)