diff 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
line wrap: on
line diff
--- a/src/s/windowsnt.h	Tue Sep 14 02:53:16 2004 +0000
+++ b/src/s/windowsnt.h	Tue Sep 14 14:33:07 2004 +0000
@@ -241,8 +241,9 @@
 
 /* MSVC 6.0 has a mechanism to declare functions which never return */
 #if (_MSC_VER >= 1200)
-#define DOESNT_RETURN __declspec(noreturn) void
-#define DECLARE_DOESNT_RETURN(decl) __declspec(noreturn) extern void XCDECL decl
+#define DOESNT_RETURN_TYPE(rettype) __declspec(noreturn) rettype
+#define DECLARE_DOESNT_RETURN_TYPE(rettype,decl) \
+  __declspec(noreturn) extern rettype XCDECL decl
 #endif /* MSVC 6.0 */
 
 /* MSVC warnings no-no crap.  When adding one to this section,