diff options
Diffstat (limited to '')
-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 2e7877500..6f0604958 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 |