From efa78840261871616f9af15e5ad9a5bc89f95857 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 20 Jul 2014 10:36:14 +0200 Subject: [PATCH] Added SIZE() macro --- kernel/rtlil.h | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.30.2