We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f5726 commit 3188afeCopy full SHA for 3188afe
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