projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6174aa
)
Added SIZE() macro
author
Clifford Wolf
<clifford@clifford.at>
Sun, 20 Jul 2014 08:36:14 +0000
(10:36 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Sun, 20 Jul 2014 08:36:14 +0000
(10:36 +0200)
kernel/rtlil.h
patch
|
blob
|
history
diff --git
a/kernel/rtlil.h
b/kernel/rtlil.h
index 3a22d1371e54dba38adfb1285995fe8cb49b877d..6290db21ded10c490bec7ba29aa04e08df62efbb 100644
(file)
--- 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
{