Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Morozov <vmorozov@microsoft.com>2022-03-19 01:59:02 +0300
committerMichael Dawson <mdawson@devrus.com>2022-03-21 20:24:16 +0300
commit718be08686312d19645861b9715491a49ee3c9cb (patch)
tree1a0dca89f88f5141f44092df90556f585253b85e /src/js_native_api_v8_internals.h
parent655926155647ad39236220b094c7d1f391ce02ed (diff)
node-api: format Node-API related code
PR-URL: https://github.com/nodejs/node/pull/42396 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'src/js_native_api_v8_internals.h')
-rw-r--r--src/js_native_api_v8_internals.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/js_native_api_v8_internals.h b/src/js_native_api_v8_internals.h
index 8428390ef1e..4f1b94d3d0c 100644
--- a/src/js_native_api_v8_internals.h
+++ b/src/js_native_api_v8_internals.h
@@ -14,18 +14,18 @@
// included below, defines `NAPI_VERSION`.
#include "node_version.h"
+
#include "env.h"
-#include "node_internals.h"
#include "gtest/gtest_prod.h"
+#include "node_internals.h"
-#define NAPI_ARRAYSIZE(array) \
- node::arraysize((array))
+#define NAPI_ARRAYSIZE(array) node::arraysize((array))
-#define NAPI_FIXED_ONE_BYTE_STRING(isolate, string) \
+#define NAPI_FIXED_ONE_BYTE_STRING(isolate, string) \
node::FIXED_ONE_BYTE_STRING((isolate), (string))
-#define NAPI_PRIVATE_KEY(context, suffix) \
- (node::Environment::GetCurrent((context))->napi_ ## suffix())
+#define NAPI_PRIVATE_KEY(context, suffix) \
+ (node::Environment::GetCurrent((context))->napi_##suffix())
namespace v8impl {