comparison src/s/windowsnt.h @ 2268:61855263cb07

[xemacs-hg @ 2004-09-14 14:32:29 by james] Identify functions that don't return, including some DEFUNs.
author james
date Tue, 14 Sep 2004 14:33:07 +0000
parents 543769b89fed
children 68f116fb679a
comparison
equal deleted inserted replaced
2267:5753220a0f80 2268:61855263cb07
239 files. */ 239 files. */
240 #define XCDECL __cdecl 240 #define XCDECL __cdecl
241 241
242 /* MSVC 6.0 has a mechanism to declare functions which never return */ 242 /* MSVC 6.0 has a mechanism to declare functions which never return */
243 #if (_MSC_VER >= 1200) 243 #if (_MSC_VER >= 1200)
244 #define DOESNT_RETURN __declspec(noreturn) void 244 #define DOESNT_RETURN_TYPE(rettype) __declspec(noreturn) rettype
245 #define DECLARE_DOESNT_RETURN(decl) __declspec(noreturn) extern void XCDECL decl 245 #define DECLARE_DOESNT_RETURN_TYPE(rettype,decl) \
246 __declspec(noreturn) extern rettype XCDECL decl
246 #endif /* MSVC 6.0 */ 247 #endif /* MSVC 6.0 */
247 248
248 /* MSVC warnings no-no crap. When adding one to this section, 249 /* MSVC warnings no-no crap. When adding one to this section,
249 1. Think twice. 250 1. Think twice.
250 2. Insert textual description of the warning. 251 2. Insert textual description of the warning.