diff options
Diffstat (limited to 'src/common')
| -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); | |||
| 98 | // This function might change the error code. | 98 | // This function might change the error code. |
| 99 | // Defined in Misc.cpp. | 99 | // Defined in Misc.cpp. |
| 100 | const char* GetLastErrorMsg(); | 100 | const char* GetLastErrorMsg(); |
| 101 | |||
| 102 | namespace Common { | ||
| 103 | |||
| 104 | constexpr u32 MakeMagic(char a, char b, char c, char d) { | ||
| 105 | return a | b << 8 | c << 16 | d << 24; | ||
| 106 | } | ||
| 107 | |||
| 108 | } // namespace Common | ||