Skip to content

Commit

Permalink
src: lint #defines in src/node.h
Browse files Browse the repository at this point in the history
A few #defines in src/node.h had inconsistent spacing
and tabbing. This commit changes the spacing to be
the same style as the rest of the project.

PR-URL: #28547
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
srcmake authored and targos committed Jul 20, 2019
1 parent 9f6600a commit 4b9d419
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

#ifdef _WIN32
# ifndef BUILDING_NODE_EXTENSION
# define NODE_EXTERN __declspec(dllexport)
# define NODE_EXTERN __declspec(dllexport)
# else
# define NODE_EXTERN __declspec(dllimport)
# define NODE_EXTERN __declspec(dllimport)
# endif
#else
# define NODE_EXTERN __attribute__((visibility("default")))
Expand All @@ -43,7 +43,7 @@
// See issue https://github.com/nodejs/node-v0.x-archive/issues/1236
#if defined(__MINGW32__) || defined(_MSC_VER)
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0600 // Windows Server 2008
# define _WIN32_WINNT 0x0600 // Windows Server 2008
#endif

#ifndef NOMINMAX
Expand All @@ -57,7 +57,7 @@
#endif

#ifdef _WIN32
# define SIGKILL 9
# define SIGKILL 9
#endif

#include "v8.h" // NOLINT(build/include_order)
Expand Down Expand Up @@ -184,8 +184,8 @@ NODE_DEPRECATED("Use MakeCallback(..., async_context)",
#include <cstdint>

#ifndef NODE_STRINGIFY
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
#define NODE_STRINGIFY_HELPER(n) #n
# define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
# define NODE_STRINGIFY_HELPER(n) #n
#endif

#ifdef _WIN32
Expand Down

0 comments on commit 4b9d419

Please sign in to comment.