Merge pull request #307 from veblush/port-backport

Add UPB_NORETURN for MSC
pull/13171/head
Joshua Haberman 5 years ago committed by GitHub
commit 7338facddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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