3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-25 21:57:01 +00:00

Added log_cell()

This commit is contained in:
Clifford Wolf 2014-07-20 10:35:47 +02:00
parent 15fd615da5
commit a6174aaf5e
2 changed files with 17 additions and 0 deletions

View file

@ -57,6 +57,8 @@ template<typename T> static inline const char *log_id(T *obj) {
return log_id(obj->name);
}
void log_cell(RTLIL::Cell *cell, std::string indent = "");
#define log_abort() log_error("Abort in %s:%d.\n", __FILE__, __LINE__)
#define log_assert(_assert_expr_) do { if (_assert_expr_) break; log_error("Assert `%s' failed in %s:%d.\n", #_assert_expr_, __FILE__, __LINE__); } while (0)