Skip to content

Commit

Permalink
Add FLINT_NORETURN for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Nov 18, 2023
1 parent ae722a5 commit 986a9e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flint.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,15 @@ typedef struct __FLINT_FILE FLINT_FILE;
# define __attribute__(x)
# if defined(_MSC_VER)
# define FLINT_FORCE_INLINE static __forceinline
# define FLINT_NORETURN __declspec(noreturn)
# else
# define FLINT_FORCE_INLINE static inline
# define FLINT_NORETURN
# endif
# define FLINT_STATIC_NOINLINE static
# define FLINT_UNUSED(x) x
# define FLINT_SET_BUT_UNUSED(x) x
# define FLINT_WARN_UNUSED
# define FLINT_NORETURN
# define FLINT_CONST
# define FLINT_UNLIKELY(x) (x)
# define FLINT_LIKELY(x) (x)
Expand Down

0 comments on commit 986a9e6

Please sign in to comment.