Added SIZE() macro
authorClifford Wolf <clifford@clifford.at>
Sun, 20 Jul 2014 08:36:14 +0000 (10:36 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 20 Jul 2014 08:36:14 +0000 (10:36 +0200)
kernel/rtlil.h

index 3a22d1371e54dba38adfb1285995fe8cb49b877d..6290db21ded10c490bec7ba29aa04e08df62efbb 100644 (file)
@@ -26,7 +26,9 @@
 #include <string>
 #include <assert.h>
 
+// various helpers (unrelated to RTLIL)
 std::string stringf(const char *fmt, ...);
+#define SIZE(__obj) int(__obj.size())
 
 namespace RTLIL
 {