mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Add ARRAYSIZE macro for Google test environment
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
2dc0b68147
commit
778092838a
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user