Fossil

Check-in [a99c9ffe]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Define the NORETURN macro for MSVC
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a99c9ffec2cf627d2534e472238b700a084e8a2f2163d84a33440fc3bd20cf67
User & Date: drh 2017-03-23 22:09:51
Context
2017-03-25
19:15
(cherry-pick): Define the NORETURN macro for MSVC check-in: 1112616e user: jan.nijtmans tags: branch-2.1
2017-03-24
02:54
Update the built-in SQLite to the second 3.18.0 beta. check-in: c8a43002 user: drh tags: trunk
2017-03-23
22:09
Define the NORETURN macro for MSVC check-in: a99c9ffe user: drh tags: trunk
2017-03-22
16:42
Since "allow-symlinks" is already ON by default on non-unix platforms (since fossil 1.35 already), no need to do anything special during GIT/SVN import. check-in: f21820f4 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/config.h.

227
228
229
230
231
232
233


234
235
236
237
238
239
240
241
242
243
#endif

/*
** A marker for functions that never return.
*/
#if defined(__GNUC__) || defined(__clang__)
# define NORETURN __attribute__((__noreturn__))


#else
# define NORETURN
#endif

/*
** Number of elements in an array
*/
#define count(X) (sizeof(X)/sizeof(X[0]))

#endif /* _RC_COMPILE_ */







>
>










227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#endif

/*
** A marker for functions that never return.
*/
#if defined(__GNUC__) || defined(__clang__)
# define NORETURN __attribute__((__noreturn__))
#elif defined(_MSC_VER)
# define NORETURN __declspec(noreturn)
#else
# define NORETURN
#endif

/*
** Number of elements in an array
*/
#define count(X) (sizeof(X)/sizeof(X[0]))

#endif /* _RC_COMPILE_ */