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:
authorAnna Henningsen <anna@addaleax.net>2017-04-12 20:17:24 +0300
committerAnna Henningsen <anna@addaleax.net>2017-04-14 23:47:29 +0300
commit9d522225e7907b6cf631975b34f586984f698e33 (patch)
tree544e58031bc52a4b2658c02ba1a247f443378928 /src/timer_wrap.cc
parentf98db78f7756b29bd0e92c469a7fb7425f1267af (diff)
src: reduce number of exported symbols
Use `static` definitions and anonymous namespaces to reduce the number of symbols that are exported from the `node` binary. PR-URL: https://github.com/nodejs/node/pull/12366 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/timer_wrap.cc')
-rw-r--r--src/timer_wrap.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc
index 8ffe934a21e..382bcaacb6c 100644
--- a/src/timer_wrap.cc
+++ b/src/timer_wrap.cc
@@ -30,6 +30,7 @@
#include <stdint.h>
namespace node {
+namespace {
using v8::Context;
using v8::FunctionCallbackInfo;
@@ -132,6 +133,7 @@ class TimerWrap : public HandleWrap {
};
+} // anonymous namespace
} // namespace node
NODE_MODULE_CONTEXT_AWARE_BUILTIN(timer_wrap, node::TimerWrap::Initialize)