1 | // Copyright 2009 The RE2 Authors. All Rights Reserved. |
2 | // Use of this source code is governed by a BSD-style |
3 | // license that can be found in the LICENSE file. |
4 | |
5 | #ifndef UTIL_UTIL_H_ |
6 | #define UTIL_UTIL_H_ |
7 | |
8 | // TODO(junyer): Get rid of this. |
9 | #include <string> |
10 | using std::string; |
11 | |
12 | #define arraysize(array) (int)(sizeof(array)/sizeof((array)[0])) |
13 | |
14 | #ifndef FALLTHROUGH_INTENDED |
15 | #define FALLTHROUGH_INTENDED do { } while (0) |
16 | #endif |
17 | |
18 | #ifndef NO_THREAD_SAFETY_ANALYSIS |
19 | #define NO_THREAD_SAFETY_ANALYSIS |
20 | #endif |
21 | |
22 | #endif // UTIL_UTIL_H_ |
23 | |