mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-01 02:40:53 +01:00
18 lines
424 B
C
18 lines
424 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 UNUSED __attribute__((unused))
|
||
|
#else
|
||
|
// Not sure MSVC even checks this...
|
||
|
#define UNUSED
|
||
|
#endif
|
||
|
|
||
|
#ifndef _WIN32
|
||
|
#define __forceinline inline __attribute__((always_inline))
|
||
|
#endif
|