diff options
| author | 2018-04-19 22:36:48 -0400 | |
|---|---|---|
| committer | 2018-04-19 22:36:52 -0400 | |
| commit | d9e316e3538c0c0891f04bbfd0e211749ba15b5d (patch) | |
| tree | c218d1705222ae899c613427b01e1947a1c22893 /src/common/common_funcs.h | |
| parent | Merge pull request #356 from lioncash/shader (diff) | |
| download | yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar.gz yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar.xz yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.zip | |
common_funcs: Remove ARRAY_SIZE macro
C++17 has non-member size() which we can just call where necessary.
Diffstat (limited to 'src/common/common_funcs.h')
| -rw-r--r-- | src/common/common_funcs.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 6f0604958..19a33cb57 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -9,8 +9,6 @@ | |||
| 9 | #endif | 9 | #endif |
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | 11 | ||
| 12 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) | ||
| 13 | |||
| 14 | /// Textually concatenates two tokens. The double-expansion is required by the C preprocessor. | 12 | /// Textually concatenates two tokens. The double-expansion is required by the C preprocessor. |
| 15 | #define CONCAT2(x, y) DO_CONCAT2(x, y) | 13 | #define CONCAT2(x, y) DO_CONCAT2(x, y) |
| 16 | #define DO_CONCAT2(x, y) x##y | 14 | #define DO_CONCAT2(x, y) x##y |