Skip to content

Commit

Permalink
types: __forceinline is for MVSC
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthMew committed May 30, 2024
1 parent 0ddd642 commit 7a27436
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// Force inline helper
#ifndef ALWAYS_INLINE
#if defined(_WIN32)
#if defined(_MSC_VER)
#define ALWAYS_INLINE __forceinline
#elif defined(__GNUC__) || defined(__clang__)
#define ALWAYS_INLINE __attribute__((always_inline)) inline
Expand All @@ -26,8 +26,6 @@
#ifndef UNREFERENCED_VARIABLE
#if defined(_MSC_VER)
#define UNREFERENCED_VARIABLE(P) (P)
#elif defined(_WIN32)
#define UNREFERENCED_VARIABLE(P)
#elif defined(__GNUC__) || defined(__clang__) || defined(__EMSCRIPTEN__)
#define UNREFERENCED_VARIABLE(P) (void)(P)
#else
Expand Down

0 comments on commit 7a27436

Please sign in to comment.