Commit 2a57a2aa authored by Kenton Varda's avatar Kenton Varda

Fix KJ_ALWAYS_INLINE on template specializations (commas).

parent 6816634a
...@@ -149,13 +149,13 @@ typedef unsigned char byte; ...@@ -149,13 +149,13 @@ typedef unsigned char byte;
#endif #endif
#if defined(KJ_DEBUG) || __NO_INLINE__ #if defined(KJ_DEBUG) || __NO_INLINE__
#define KJ_ALWAYS_INLINE(prototype) inline prototype #define KJ_ALWAYS_INLINE(...) inline __VA_ARGS__
// Don't force inline in debug mode. // Don't force inline in debug mode.
#else #else
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define KJ_ALWAYS_INLINE(prototype) __forceinline prototype #define KJ_ALWAYS_INLINE(...) __forceinline __VA_ARGS__
#else #else
#define KJ_ALWAYS_INLINE(prototype) inline prototype __attribute__((always_inline)) #define KJ_ALWAYS_INLINE(...) inline __VA_ARGS__ __attribute__((always_inline))
#endif #endif
// Force a function to always be inlined. Apply only to the prototype, not to the definition. // Force a function to always be inlined. Apply only to the prototype, not to the definition.
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment