From 4569a747f8af3880e23408eb93323afc8088b78b Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 10 Oct 2014 16:59:44 +0200 Subject: Renamed SIZE() to GetSize() because of name collision on Win32 --- CodingReadme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CodingReadme') diff --git a/CodingReadme b/CodingReadme index 8f515e1f..2404a7a5 100644 --- a/CodingReadme +++ b/CodingReadme @@ -61,8 +61,8 @@ Yosys is written in C++11. At the moment only constructs supported by gcc 4.6 is allowed in Yosys code. This will change in future releases. In general Yosys uses "int" instead of "size_t". To avoid compiler -warnings for implicit type casts, always use "SIZE(foobar)" instead -of "foobar.size()". (the macro SIZE() is defined by kernel/yosys.h) +warnings for implicit type casts, always use "GetSize(foobar)" instead +of "foobar.size()". (GetSize() is defined by kernel/yosys.h) Use range-based for loops whenever applicable. -- cgit v1.2.3