summaryrefslogtreecommitdiffstats
path: root/src/common/common_funcs.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-15 08:25:40 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-15 20:27:28 +0100
commit3ff978aa4f6b9d46179e41c36825eb06e7f8d60c (patch)
treeb785496e5fb574c0df48ebba7d8a518eb9adde21 /src/common/common_funcs.h
parentMerge pull request #5354 from ReinUsesLisp/remove-common-color (diff)
downloadyuzu-3ff978aa4f6b9d46179e41c36825eb06e7f8d60c.tar
yuzu-3ff978aa4f6b9d46179e41c36825eb06e7f8d60c.tar.gz
yuzu-3ff978aa4f6b9d46179e41c36825eb06e7f8d60c.tar.bz2
yuzu-3ff978aa4f6b9d46179e41c36825eb06e7f8d60c.tar.lz
yuzu-3ff978aa4f6b9d46179e41c36825eb06e7f8d60c.tar.xz
yuzu-3ff978aa4f6b9d46179e41c36825eb06e7f8d60c.tar.zst
yuzu-3ff978aa4f6b9d46179e41c36825eb06e7f8d60c.zip
Diffstat (limited to '')
-rw-r--r--src/common/common_funcs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index c90978f9c..75f3027fb 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -24,10 +24,10 @@
#define INSERT_PADDING_WORDS(num_words) \
std::array<u32, num_words> CONCAT2(pad, __LINE__) {}
-/// These are similar to the INSERT_PADDING_* macros, but are needed for padding unions. This is
-/// because unions can only be initialized by one member.
-#define INSERT_UNION_PADDING_BYTES(num_bytes) std::array<u8, num_bytes> CONCAT2(pad, __LINE__)
-#define INSERT_UNION_PADDING_WORDS(num_words) std::array<u32, num_words> CONCAT2(pad, __LINE__)
+/// These are similar to the INSERT_PADDING_* macros but do not zero-initialize the contents.
+/// This keeps the structure trivial to construct.
+#define INSERT_PADDING_BYTES_NOINIT(num_bytes) std::array<u8, num_bytes> CONCAT2(pad, __LINE__)
+#define INSERT_PADDING_WORDS_NOINIT(num_words) std::array<u32, num_words> CONCAT2(pad, __LINE__)
#ifndef _MSC_VER