summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-11-14 16:54:01 -0500
committerGravatar Lioncash2019-11-14 17:05:27 -0500
commitf2e34efcbba4af82d69c400a5ce36af379f575fc (patch)
treef676d7e37e2d0cc1a2e44e0611eaabc0b3b68e25 /src
parentMerge pull request #3089 from SciresM/play_statistics (diff)
downloadyuzu-f2e34efcbba4af82d69c400a5ce36af379f575fc.tar.gz
yuzu-f2e34efcbba4af82d69c400a5ce36af379f575fc.tar.xz
yuzu-f2e34efcbba4af82d69c400a5ce36af379f575fc.zip
common_funcs: Remove semicolons from INSERT_PADDING_* macros
Makes code that uses the macros consistent by requiring the lines to be terminated with a semicolon.
Diffstat (limited to 'src')
-rw-r--r--src/common/common_funcs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index 6dc3e108f..052254678 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -19,13 +19,15 @@
19 19
20/// Helper macros to insert unused bytes or words to properly align structs. These values will be 20/// Helper macros to insert unused bytes or words to properly align structs. These values will be
21/// zero-initialized. 21/// zero-initialized.
22#define INSERT_PADDING_BYTES(num_bytes) std::array<u8, num_bytes> CONCAT2(pad, __LINE__){}; 22#define INSERT_PADDING_BYTES(num_bytes) \
23#define INSERT_PADDING_WORDS(num_words) std::array<u32, num_words> CONCAT2(pad, __LINE__){}; 23 std::array<u8, num_bytes> CONCAT2(pad, __LINE__) {}
24#define INSERT_PADDING_WORDS(num_words) \
25 std::array<u32, num_words> CONCAT2(pad, __LINE__) {}
24 26
25/// These are similar to the INSERT_PADDING_* macros, but are needed for padding unions. This is 27/// These are similar to the INSERT_PADDING_* macros, but are needed for padding unions. This is
26/// because unions can only be initialized by one member. 28/// because unions can only be initialized by one member.
27#define INSERT_UNION_PADDING_BYTES(num_bytes) std::array<u8, num_bytes> CONCAT2(pad, __LINE__); 29#define INSERT_UNION_PADDING_BYTES(num_bytes) std::array<u8, num_bytes> CONCAT2(pad, __LINE__)
28#define INSERT_UNION_PADDING_WORDS(num_words) std::array<u32, num_words> CONCAT2(pad, __LINE__); 30#define INSERT_UNION_PADDING_WORDS(num_words) std::array<u32, num_words> CONCAT2(pad, __LINE__)
29 31
30#ifndef _MSC_VER 32#ifndef _MSC_VER
31 33