mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-01 18:21:11 +01:00
d8f6d60189
UNUSED is quite a generic macro name and has potential to clash with other libraries, so rename it to DOLPHIN_UNUSED to prevent that, as well as make its naming consistent with the force inline macro
20 lines
495 B
C
20 lines
495 B
C
// Copyright 2018 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#if defined(__GNUC__) || __clang__
|
|
// Disable "unused function" warnings for the ones manually marked as such.
|
|
#define DOLPHIN_UNUSED __attribute__((unused))
|
|
#else
|
|
// Not sure MSVC even checks this...
|
|
#define DOLPHIN_UNUSED
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
#define DOLPHIN_FORCE_INLINE __forceinline
|
|
#else
|
|
#define DOLPHIN_FORCE_INLINE inline __attribute__((always_inline))
|
|
#endif
|