libobs: Add OBS_NORETURN and use it for crash handler

Fixes some analyzers flagging code after a crashing path makes it
impossible to reach.
This commit is contained in:
Richard Stanway
2021-12-09 02:40:51 +01:00
parent b92e941b4f
commit b37acbcbc1
3 changed files with 6 additions and 10 deletions

View File

@@ -25,9 +25,11 @@
#ifdef _MSC_VER
#define OBS_DEPRECATED __declspec(deprecated)
#define OBS_NORETURN __declspec(noreturn)
#define FORCE_INLINE __forceinline
#else
#define OBS_DEPRECATED __attribute__((deprecated))
#define OBS_NORETURN __attribute__((noreturn))
#define FORCE_INLINE inline __attribute__((always_inline))
#endif