2018-06-09 15:34:43 +00:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-06-09 16:00:34 +00:00
|
|
|
// TODO: Replace this with [[maybe_unused]] directly when GCC 7 and clang 3.9
|
|
|
|
// are hard requirements.
|
2018-06-09 15:34:43 +00:00
|
|
|
#if defined(__GNUC__) || __clang__
|
|
|
|
// Disable "unused function" warnings for the ones manually marked as such.
|
2018-06-09 15:54:52 +00:00
|
|
|
#define DOLPHIN_UNUSED __attribute__((unused))
|
2018-06-09 15:34:43 +00:00
|
|
|
#else
|
2018-06-09 16:00:34 +00:00
|
|
|
#define DOLPHIN_UNUSED [[maybe_unused]]
|
2018-06-09 15:34:43 +00:00
|
|
|
#endif
|
|
|
|
|
2018-06-09 15:47:01 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
#define DOLPHIN_FORCE_INLINE __forceinline
|
|
|
|
#else
|
|
|
|
#define DOLPHIN_FORCE_INLINE inline __attribute__((always_inline))
|
2018-06-09 15:34:43 +00:00
|
|
|
#endif
|