Add UPB_NORETURN for MSC

pull/13171/head
Esun Kim 4 years ago
parent 382d5afc60
commit 4d2251c3e4
  1. 4
      upb/port_def.inc

@ -79,6 +79,10 @@
#define UPB_FORCEINLINE __inline__ __attribute__((always_inline))
#define UPB_NOINLINE __attribute__((noinline))
#define UPB_NORETURN __attribute__((__noreturn__))
#elif defined(_MSC_VER)
#define UPB_NOINLINE
#define UPB_FORCEINLINE
#define UPB_NORETURN __declspec(noreturn)
#else /* !defined(__GNUC__) */
#define UPB_FORCEINLINE
#define UPB_NOINLINE

Loading…
Cancel
Save