Merge branch 'speedup_assert' into 'master'
NPNR_ASSERT not to implicitly construct strings See merge request SymbioticEDA/nextpnr!6
This commit is contained in:
commit
f4c62e233c
@ -72,7 +72,7 @@ class assertion_failure : public std::runtime_error
|
|||||||
int line;
|
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)
|
if (!expr)
|
||||||
throw assertion_failure(message, expr_str, filename, line);
|
throw assertion_failure(message, expr_str, filename, line);
|
||||||
|
Loading…
Reference in New Issue
Block a user