diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-20 10:36:14 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-20 10:36:14 +0200 |
commit | efa78840261871616f9af15e5ad9a5bc89f95857 (patch) | |
tree | 337ea03a58e88a8a4ab4bc4518842a089a0b2910 /kernel/rtlil.h | |
parent | a6174aaf5eec37f1d1713afa978ae16286fc0b74 (diff) | |
download | yosys-efa78840261871616f9af15e5ad9a5bc89f95857.tar.gz yosys-efa78840261871616f9af15e5ad9a5bc89f95857.tar.bz2 yosys-efa78840261871616f9af15e5ad9a5bc89f95857.zip |
Added SIZE() macro
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <string> #include <assert.h> +// various helpers (unrelated to RTLIL) std::string stringf(const char *fmt, ...); +#define SIZE(__obj) int(__obj.size()) namespace RTLIL { |