mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 03:10:26 +00:00
Added format __attribute__ to stringf()
This commit is contained in:
parent
7cb0d3aa1a
commit
bbd808072b
5 changed files with 8 additions and 6 deletions
|
@ -82,7 +82,7 @@ namespace RTLIL {
|
|||
struct Cell;
|
||||
}
|
||||
|
||||
std::string stringf(const char *fmt, ...);
|
||||
std::string stringf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
std::string vstringf(const char *fmt, va_list ap);
|
||||
template<typename T> int GetSize(const T &obj) { return obj.size(); }
|
||||
int GetSize(RTLIL::Wire *wire);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue