summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-20 10:36:14 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-20 10:36:14 +0200
commitefa78840261871616f9af15e5ad9a5bc89f95857 (patch)
tree337ea03a58e88a8a4ab4bc4518842a089a0b2910
parenta6174aaf5eec37f1d1713afa978ae16286fc0b74 (diff)
Added SIZE() macro
-rw-r--r--kernel/rtlil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 3a22d137..6290db21 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -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
{