Define the VPX_NO_RETURN macro for MSVC
authorWan-Teh Chang <wtc@google.com>
Fri, 10 Sep 2021 22:54:51 +0000 (15:54 -0700)
committerJerome Jiang <jianj@google.com>
Mon, 27 Sep 2021 22:17:19 +0000 (15:17 -0700)
commit5df4195b43e5b69572cdb1903d67d6f6c2917285
tree6e6b39826834f4d0da21f64cf8609cb00087a4e8
parent15a75b45304248f746634b43763c496322bf8968
Define the VPX_NO_RETURN macro for MSVC

Define VPX_NO_RETURN as __declspec(noreturn) for MSVC. See
https://docs.microsoft.com/en-us/cpp/cpp/noreturn?view=msvc-160

This requires moving VPX_NO_RETURN before function declarations because
__declspec(noreturn) must be placed there. Fortunately GCC's
__attribute__((noreturn)) can be placed either before or after function
declarations.

Change-Id: Id9bb0077e2a4f16ec2ca9c913dd93673a0e385cf
(cherry picked from commit 8a6fbc0b4eb8538e213782bcdc3969a08b44e73b)
args.c
tools_common.h