diff options
author | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-08 15:48:54 -0700 |
---|---|---|
committer | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-08 15:48:54 -0700 |
commit | 18c93104be19d0099d50fba364b94ead61623a8c (patch) | |
tree | 2294d42eb9bc2a8ad96d60c3f941155b7a7eb9c9 | |
parent | 9704ebd079fd7d8c94af97a49ef9f8f8c6ae2871 (diff) | |
download | nextpnr-18c93104be19d0099d50fba364b94ead61623a8c.tar.gz nextpnr-18c93104be19d0099d50fba364b94ead61623a8c.tar.bz2 nextpnr-18c93104be19d0099d50fba364b94ead61623a8c.zip |
NPNR_ASSERT not to implicitly construct strings
-rw-r--r-- | common/nextpnr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index ec0c2f9f..37e193b9 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -72,7 +72,7 @@ class assertion_failure : public std::runtime_error int line; }; -inline void except_assert_impl(bool expr, std::string message, std::string expr_str, std::string filename, int line) +inline void except_assert_impl(bool expr, const char *message, const char *expr_str, const char *filename, int line) { if (!expr) throw assertion_failure(message, expr_str, filename, line); |