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 6f03a5d commit 8e23b9dCopy full SHA for 8e23b9d
1 file changed
NativeScript/ffi/node_api_util.h
@@ -60,13 +60,16 @@ inline bool napiSupportsThreadsafeFunctions(void* dl) {
60
return NULL; \
61
}
62
63
-#define NAPI_ERROR_INFO \
+#define NAPI_ERROR_INFO \
64
const napi_extended_error_info* error_info = nullptr; \
65
napi_get_last_error_info(env, &error_info);
66
67
-#define NAPI_THROW_LAST_ERROR \
68
- { NAPI_ERROR_INFO \
69
- napi_throw_error(env, NULL, error_info ? error_info->error_message : "Unknown error"); }
+#define NAPI_THROW_LAST_ERROR \
+ { \
+ NAPI_ERROR_INFO \
70
+ napi_throw_error( \
71
+ env, NULL, error_info ? error_info->error_message : "Unknown error"); \
72
+ }
73
74
#ifndef DEBUG
75
0 commit comments