diff options
author | bunnei <bunneidev@gmail.com> | 2017-10-15 00:11:38 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-10-15 00:11:38 -0400 |
commit | 746c2a3ae769c6172700e4f9e10ba01fa0df4ccb (patch) | |
tree | fc17369ecf7eae3ba8567f3098223a40ab860ff4 /src/common/common_funcs.h | |
parent | 72eeca1f037261ca2802da79ff1feff813e26e48 (diff) |
core: Refactor MakeMagic usage and remove dead code.
Diffstat (limited to 'src/common/common_funcs.h')
-rw-r--r-- | src/common/common_funcs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 2e7877500d..6f06049581 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -98,3 +98,11 @@ __declspec(dllimport) void __stdcall DebugBreak(void); // This function might change the error code. // Defined in Misc.cpp. const char* GetLastErrorMsg(); + +namespace Common { + +constexpr u32 MakeMagic(char a, char b, char c, char d) { + return a | b << 8 | c << 16 | d << 24; +} + +} // namespace Common |