From: Clifford Wolf Date: Sun, 20 Jul 2014 08:36:14 +0000 (+0200) Subject: Added SIZE() macro X-Git-Tag: yosys-0.4~530 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efa78840261871616f9af15e5ad9a5bc89f95857;p=yosys.git Added SIZE() macro --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 3a22d1371..6290db21d 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -26,7 +26,9 @@ #include #include +// various helpers (unrelated to RTLIL) std::string stringf(const char *fmt, ...); +#define SIZE(__obj) int(__obj.size()) namespace RTLIL {