Add ARRAYSIZE macro for Google test environment

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-08-25 18:36:43 +02:00
parent 2dc0b68147
commit 778092838a

View File

@ -22,6 +22,7 @@ const char* FLAGS_test_tmpdir = ".";
class file: public tesseract::File {
};
#define ARRAYSIZE(arr) (sizeof(arr) / sizeof(arr[0]))
#define CHECK(test) ASSERT_HOST(test)
#endif // TESSERACT_UNITTEST_INCLUDE_GUNIT_H_