medfall

A super great game engine
Log | Files | Refs

platform_inline.h (251B)


      1 #pragma once
      2 
      3 #include "platform.h"
      4 
      5 #if COMPILER_GCCORCLANG
      6 #define FORCE_INLINE __attribute__((always_inline))
      7 #elif COMPILER_MSVC
      8 #define FORCE_INLINE __forceinline
      9 #else
     10 #error unrecognised compiler
     11 #endif
     12 
     13 #define forceinline inline FORCE_INLINE