OLD | NEW |
| (Empty) |
1 // Copyright 2003-2009 Google Inc. | |
2 // | |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 // you may not use this file except in compliance with the License. | |
5 // You may obtain a copy of the License at | |
6 // | |
7 // http://www.apache.org/licenses/LICENSE-2.0 | |
8 // | |
9 // Unless required by applicable law or agreed to in writing, software | |
10 // distributed under the License is distributed on an "AS IS" BASIS, | |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 // See the License for the specific language governing permissions and | |
13 // limitations under the License. | |
14 // ======================================================================== | |
15 | |
16 // TODO(omaha): Maybe eliminate this file or at least rename it. | |
17 | |
18 #ifndef OMAHA_BASE_COMMONTYPES_H_ | |
19 #define OMAHA_BASE_COMMONTYPES_H_ | |
20 | |
21 namespace omaha { | |
22 | |
23 // Isolate some VisualC++-isms to macros for easy redefinition | |
24 #define SELECTANY __declspec(selectany) | |
25 #define DLLIMPORT __declspec(dllimport) | |
26 #define DLLEXPORT __declspec(dllexport) | |
27 | |
28 // Put this around string literals that don't need to be localized | |
29 // to indicate this fact. Note that you don't need to do this for string | |
30 // literals used in functions where they obviously don't need to be localized, | |
31 // such as REPORT(), XXX_LOG(), CHK(), ASSERT(), VERIFY(), TRACE(), dbgprint(), | |
32 // OutputDebugString(), GetProcAddress(), GetModuleHandle(), etc. | |
33 // | |
34 // For large blocks of non-localizable string literals, you can use a comment | |
35 // line including "SKIP_LOC_BEGIN" to start a non-localizable section of | |
36 // your file, and "SKIP_LOC_END" to end the section. | |
37 // | |
38 // Don't worry about NOTRANSL or the SKIP_LOC blocks in unit tests, experimental | |
39 // code, etc. as they are ignored when checking for localizable string literals. | |
40 #define NOTRANSL(x) x | |
41 | |
42 } // namespace omaha | |
43 | |
44 #endif // OMAHA_BASE_COMMONTYPES_H_ | |
OLD | NEW |