OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 7 #ifndef CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "core/include/fxcrt/fx_memory.h" | 13 #include "core/fxcrt/include/fx_memory.h" |
14 #include "core/include/fxcrt/fx_stream.h" | 14 #include "core/fxcrt/include/fx_stream.h" |
15 #include "core/include/fxcrt/fx_string.h" | 15 #include "core/fxcrt/include/fx_string.h" |
16 #include "core/include/fxcrt/fx_system.h" | 16 #include "core/fxcrt/include/fx_system.h" |
17 | 17 |
18 // The FX_ArraySize(arr) macro returns the # of elements in an array arr. | 18 // The FX_ArraySize(arr) macro returns the # of elements in an array arr. |
19 // The expression is a compile-time constant, and therefore can be | 19 // The expression is a compile-time constant, and therefore can be |
20 // used in defining new arrays, for example. If you use FX_ArraySize on | 20 // used in defining new arrays, for example. If you use FX_ArraySize on |
21 // a pointer by mistake, you will get a compile-time error. | 21 // a pointer by mistake, you will get a compile-time error. |
22 // | 22 // |
23 // One caveat is that FX_ArraySize() doesn't accept any array of an | 23 // One caveat is that FX_ArraySize() doesn't accept any array of an |
24 // anonymous type or a type defined inside a function. | 24 // anonymous type or a type defined inside a function. |
25 #define FX_ArraySize(array) (sizeof(ArraySizeHelper(array))) | 25 #define FX_ArraySize(array) (sizeof(ArraySizeHelper(array))) |
26 | 26 |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 FX_FLOAT b; | 1143 FX_FLOAT b; |
1144 FX_FLOAT c; | 1144 FX_FLOAT c; |
1145 FX_FLOAT d; | 1145 FX_FLOAT d; |
1146 FX_FLOAT e; | 1146 FX_FLOAT e; |
1147 FX_FLOAT f; | 1147 FX_FLOAT f; |
1148 FX_FLOAT g; | 1148 FX_FLOAT g; |
1149 FX_FLOAT h; | 1149 FX_FLOAT h; |
1150 FX_FLOAT i; | 1150 FX_FLOAT i; |
1151 }; | 1151 }; |
1152 | 1152 |
1153 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1153 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
OLD | NEW |