Skip to content

Commit

Permalink
Add ARRAYSIZE macro for Google test environment
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Aug 25, 2018
1 parent 2dc0b68 commit 7780928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unittest/include_gunit.h
Expand Up @@ -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_

0 comments on commit 7780928

Please sign in to comment.