We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e9dbd4 commit bc0c142Copy full SHA for bc0c142
src/node_api.h
@@ -18,10 +18,12 @@ struct uv_loop_s; // Forward declaration.
18
# define NAPI_MODULE_EXPORT __attribute__((visibility("default")))
19
#endif
20
21
-#ifdef __GNUC__
22
-#define NAPI_NO_RETURN __attribute__((noreturn))
+#if defined(__GNUC__)
+# define NAPI_NO_RETURN __attribute__((noreturn))
23
+#elif defined(_WIN32)
24
+# define NAPI_NO_RETURN __declspec(noreturn)
25
#else
-#define NAPI_NO_RETURN
26
+# define NAPI_NO_RETURN
27
28
29
typedef napi_value (*napi_addon_register_func)(napi_env env,
0 commit comments