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)
committerWan-Teh Chang <wtc@google.com>
Fri, 10 Sep 2021 22:54:51 +0000 (15:54 -0700)
commit8a6fbc0b4eb8538e213782bcdc3969a08b44e73b
tree7b5a993bf4a05abc4584c8bcaa5239c583943d58
parent65a1751e5b98bf7f1d21bcbfdef352af34fb205d
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
args.c
tools_common.h